Is there a Visual Studio keyboard shortcut to rename a file in Solution Explorer?
Asked Answered
W

3

19

As the question title says: Is there a Visual Studio keyboard shortcut (or series of shortcuts) to rename file in Solution Explorer?

I am using VS2008 and manually doing this by right-clicking on a file in the Solution Explorer and selecting 'Rename', but this is a pain in the behind.

Warlike answered 10/11, 2010 at 3:48 Comment(2)
In general, you can customize the keyboard shortvuts to whatever you like. However, also check out this answer #3375944Marabou
@InSane. Thanks for the link. Yet another example of how suckful the SO onsite searching is. That link didn't come up in the Ask Question related answer prompt.Warlike
C
26

Depends on your settings profile:

In the C# profile, F2 does this.

you can assign a shortcut to any key:

  • Tools -> Options, Expand Environment and select Keyboard
  • Enter File.Rename into the text box
  • Put the Focus on the "Press Shortcut keys" box and hit 'the key you want to assign'
  • Click Assign
Crystie answered 10/11, 2010 at 3:55 Comment(2)
Nice, that sorted it. Thanks Mitch.Warlike
just btw F2 is also the default keyboard shortcut for rename in windows explorerTopgallant
B
1

No use option Refractor.Rename and Assign key to that say F2

Boschvark answered 13/7, 2014 at 9:23 Comment(0)
M
0

Use: File Utils Extension

command T or control T >File Utils: Rename, that's it.

Motivation answered 11/9, 2022 at 16:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.