Question

What is the shortcut to open a file within your solution in Visual Studio 2008 (+ Resharper)?

Was it helpful?

Solution

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

Looks like Ctrl + Shift + T opens files.

OTHER TIPS

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

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.

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?

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

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

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

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top