How to quickly open a file in Visual Studio 2012

2019-01-16 00:27发布

I am trying VS2012 RC but find one good feature no available any more (or if it still is, please let me know): in VS2010, if I know a file name, for example, MyFile.cs, I can quickly open it by typing Ctrl+D (or whatever shortcut assigned) to go to Find tool, and then type >of myfile.cs, the file will be opened then, and it is even more convenient that this will do an incremental search of the file name. In the whole procedure I don't need to use mouse at all.

The new Quick Launch tool in VS2012 only searches in opened files, which is really not what I want. Does this feature get supported in VS2012? Is so or if some similar way exists, please tell me.

7条回答
相关推荐>>
2楼-- · 2019-01-16 01:13

I wish there is a simple shortcut to just open a file within a solution.

These 3 are close but none of them is perfect.

  1. Ctrl+; has a delay and does not clear your search after you open the file.

  2. Ctrl+, takes too long initially and it shows method names etc, showing a lot of irrelevant results if you just want to open a file.

  3. Using Command Window you have to type open or of, but in some cases this could/might be the fastest.

    Hit Ctrl+Alt+A to open the Command Window, then type of your_filename

    screenshot of action

查看更多
登录 后发表回答