I'm trying to get Visual Studio to Rename a file when I'm in the solution explorer with a file or directory selected and I hit the F2 key. However, I also want Visual Studio to do Refactoring Renaming when I hit F2 and I am in the editor window with my cursor on a variable. I know it is something to do with setting the context of each (Global, TextEditor, etc). However, I can't seem to find the right combination. There is no "Solution Explorer" Context
Here's what I did in Visual Studio (2013) to get F2 working in the editor and the solution explorer:
I couldn't get it to work with "Global". It seems odd to me that this isn't default behaviour, given the ubiquity of using F2 for renaming across Microsoft products, but at least its flexible enough to allow you to set it up.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With