简体   繁体   中英

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

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.

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

没有使用选项Refractor.Rename和分配键说F2

Use: File Utils Extension

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM