• Advertisement
Sign in to follow this  

Open a file by tiping in its name in Visual studio 2010 c++

This topic is 1860 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello.
What i am trying to do is find a way to navigate around files in Visual studio 2010 c++,
I have about 20 files(.cpp, .h) and am expecting about 50-70 more, and navigating around is a real pain.

In codeblocks there was a way for this "Alt+G" .

Any tips and suggestions how to navigate around files?

Share this post


Link to post
Share on other sites
Advertisement
You can use the search box for this: just type in ">of myFile" (without quotes) and it opens the file.

As an alternative there are add-ons that do this. Visual Assist X, for example, has that feature. Edited by brx

Share this post


Link to post
Share on other sites
You can install Vissual Assist X into Visual Studio as a plugin in which has this bound to ALT+SHIFT+O by default. There is nothing like this in stock Visual Studio and you are going to have to rely on a plugin to do this for you. Visual Studio Express versions don't support plugins so there is no way to get it in those other then to bring up the open file dialog, but that's not really what you are after I think.

Share this post


Link to post
Share on other sites
well i colleague of mine once told me that around 10 years ago they used to navigate through files in visual studio by using the shortcut for open file (Control + O) and start typing the name of the file. guess you could use that. :)

Share this post


Link to post
Share on other sites
In the command window (Ctrl + alt + A) type:

open [filename]

at the prompt.
You generally just need the name of the file, it should generally be able to find the full path automatically.

Share this post


Link to post
Share on other sites
Uh, why hasn't anyone said anything about Ctrl+Comma yet (or Edit->Navigate To if your keybinds are different)? That lets you to navigate to files and/or symbols in your code by typing their names. Is it not available in the express editions or something? Edited by Mike.Popoloski

Share this post


Link to post
Share on other sites
Honestly, I don't quite get it. What's the problem with typing

>of

in the search box? The search box is there by default (I might be mistaken, but even if it isn't, it's easy to get it), so it's only four keystrokes (including the space after the "of") to get this feature. Yes, it also works in the command window as Sandman suggested, but I think the search box is a lot faster.


There is nothing like this in stock Visual Studio

This is plain wrong.

Share this post


Link to post
Share on other sites

Uh, why hasn't anyone said anything about Ctrl+Comma yet (or Edit->Navigate To if your keybinds are different)? That lets you to navigate to files and/or symbols in your code by typing their names. Is it not available in the express editions or something?

Well that would do it, thought its a bit slow, but i will save allot of time this way, also that in my Visual studio express 2010.


This feature has been added to VS2012 just for the record.

As i just said above, i have ability to use this in Visual studio express 2010.

EDIT:
Please don't down vote'Gavin Williams' post for no reason...
He obviously meant no harm, just wanted to help.
Replay to "brx" post[/quote]
I did not find the search box and after i found "Edit -> Navigate to (hotkey ctrl+,)" i did not investigate any further tho it would be a viable option.

Thanks you everyone
Edited by BaneTrapper

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement