How do I rename a variable/method and all references in it in C# VSCode?

时间:2019-04-17 01:20:03

标签: c# visual-studio-code

I see how to do it in javascript: https://johnpapa.net/refactoring-with-visual-studio-code/

But it doesn't seem to work with C# for some reason.

1 个答案:

答案 0 :(得分:4)

You can select a piece of text and right-click it. The context menu has "change all occurences". but it only works for the open file in the editor.