kutny.net


Content:
Quick Open File for Visual Studio

Quick Open File for Visual Studio

Current version: 1.2
Last update: 2009-11-10
Quick Open File for Visual Studio 2008: download [344 KB]
Quick Open File for Visual Studio 2010 Beta 2: download [145 KB]
Quick Open File for Visual Studio 2010 RC: download [144 KB]

About

Quick Open File for Visual Studio is a small plugin that tries to simulate the feature known to Eclipse users as Open Resource. This plugin gives Visual Studio equivalently quick method for opening any solution file. The plugin is available for visual studio 2008 and 2010 Beta 2 and 2010 Release Candidate (RC).

Although in Eclipse this feature is invoked by Ctrl+Shift+R, this plugin is invoked by pressing the sequence Ctrl+K, Ctrl+O (because the former shortcut key is already taken in Visual Studio by default). The default shortcut key can be changed by the user of course. The plugin is independent of programming language and solution/project type you are working on. It indexes all files from the entire solution that are accessible via the Solution Explorer. When it finds the desired file it opens the file in the default editor assigned for that file type.

The plugin searches for the given substring inside file names. You can also use wildcards (?, *) in the search. The list of matched file names is updated on the fly as you type. Opening the file is as easy as hitting Enter when you've found the desired file.
New in version 1.1: Press Shift+Enter to open the selected file using other than the default editor. This will bring up the Open With dialog where you can choose the desired editor.

Installation

Obviously the plugin requires Microsoft Visual Studio 2008 or 2010 RC or Beta 2 to be already installed on the target system. The plugin works with any edition of VS 2008 or 2010 RC or Beta 2. The installation procedure is straightforward. First download the installation package for your version of Visual Studio:

Note: If you want to use the plugin in both Visual Studio 2008 and 2010 RC / Beta 2, you will have to download and install both versions of the plugin separately.

Installation instructions for Visual Studio 2008

  • Close all running instances of Visual Studio 2008 (go to Task Manager and make sure that no process called "devenv.exe" is running. Visual Studio 2008 should not be running also during uninstallation or upgrade.
  • Run the installation package (.msi file) and click Next, Next Next... And it's done.
  • The installator will replace any previous versions of Quick Open File for Visual Studio 2008 (no need to uninstall).
  • Start Visual Studio.

Installation instructions for Visual Studio 2010 RC / Beta 2

  • Run the installation package (.vsix file), click Install and Close... And it's done.
  • The installator will replace any previous versions of Quick Open File for Visual Studio 2010 (no need to uninstall).
  • Restart Visual Studio.
  • Enable per-user extensions if running as Administrator:
    1. Go to Tools -> Options..., select Extension Manager.
    2. Make sure the option Load per user extensions when running as administrator is checked.
    3. Restart Visual Studio.
    4. Go to Tools -> Extension manager....
    5. Make sure Quick Open File for Visual Studio 2010 is enabled. If not click Enable.

Usage

After successful installation the plugin will add a menu command: Edit > Find and Replace > Quick Open File. The command is also accessible via the predefined shortcut key sequence: Ctrl+K, Ctrl+O. You can change the shortcut key preference any time via Tools > Customize... > Keyboard... The command's name is Edit.QuickOpenFile.

Menu item and shortcut key
Quick Open File command in the Edit menu.

After pressing the shortcut key combo the Quick Open File tool window is displayed. Now just type few letters from the file name you whish to open. The plugin will search the entire solution for files that contains the typed string. I.e. the plugin will not only search for file names that start with the given string but also file names that contain the string in the middle. You can also use wildcards for more complex search patterns: ? matches any character, * matches any substring.

Quick Open File tool window
Quick Open File tool window.

The list of matched file names is updated as you type. Use up and down arrow keys to move within the list and press Enter to open the selected file.

New in version 1.1: Press Shift+Enter to open the selected file using other than the default editor. This will bring up the Open With dialog where you can choose the desired editor. The same can be done using the Open button or right clicking any file from the list and choosing either Open or Open With.