1.Is there a Visual Studio keyboard shortcut to rename a file in Solution Explorer?
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
2.Shortcut key to open a class or a file in VS2010?
Press Ctrl + ,
3.Rename a class
F2