views:

308

answers:

7

In visual studio 2008 + Resharper?

Thanks!

+3  A: 

Ctrl T (ReSharper, Goto, type) will open a class file for you.

Looks like Ctrl Shift T opens files.

Si Keep
+1  A: 

Depending on your keymap, Ctrl+Shift+N will open any file in the solution, or Ctrl+N will open any type.

Thomas H
A: 

mmmm, I could SWEAR you could move between files with a shortcut

I know cntrl + T will let you open a class file ... but I could have sworn I saw someone open a page with a shortcut once.

Sara Chipps
A: 

There may be a way of doing with with a Macro, I'm sure I have seen stuff before..

Had a quick Google and came up with this, is that of any use?

Rob Cooper
+1  A: 

If the standard toolbar is visible the following will open any file in the solution (resharper is not necessary).

Ctrl-D places you in the Find textbox. '>of f' will provide a dropdown with all files that start with 'f' with path information after the filename to distinguish name collisions. Complete the filename, or arrow down to the correct one and hit enter to open it in the editor.

Steve Steiner
A: 

It depends on the key mapping that you have set. With default keymapping: Do CTRL+T to open a type and CTRL + Shift+T to open a file. With IntelliJ like mapping : Do CTRL+N to open a type and CTRL + Shift + N to open a file.

Visit the following links for all your key mapping.

ReSharper 4 Default Keymap: Visual Studio scheme http://www.jetbrains.com/resharper/docs/ReSharper40DefaultKeymap.pdf

ReSharper 4 Default Keymap: ReSharper 2.x / IDEA scheme http://www.jetbrains.com/resharper/docs/ReSharper40DefaultKeymap2.pdf

A: 

I attended a presentation recently where Kirk Jackson showed how to add aliases to the command window in Visual Studio. Bear with me, it gets better. So it went like this:

1) Open Command Window and type

alias fo File.FileOpen

2) Now in your editor window hit CTRL+/ to put the focus into the Find box on the toolbar 3) If you use the prefix ">" this is command window (sneaky huh?) so type:

>fo

and intellisense kicks in and shows you the names of the folders and files in the solution.

The alias is persistent between Visual Studio sessions.

Not exactly a keyboard shortcut but using this technique you can access any command in Visual Studio from the keyboard.

You should also check out Kirk's list of essential VS tips and tricks

Hamish Smith