• FEATURED

View more

View more

View more

Image of the Day Submit

IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.

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

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

10 replies to this topic

#1BaneTrapper  Members

Posted 18 December 2012 - 05:41 AM

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?

#2brx  Members

Posted 18 December 2012 - 05:44 AM

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, 18 December 2012 - 05:46 AM.

#3NightCreature83  Members

Posted 18 December 2012 - 08:22 AM

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.

Worked on titles: CMR:DiRT2, DiRT 3, DiRT: Showdown, GRID 2, theHunter, theHunter: Primal, Mad Max

#4BaneTrapper  Members

Posted 18 December 2012 - 09:02 AM

Well that said.
Codeblocks gets my n1 IDE prize.
Until i can afford visual studio.

Thanks on help.

Edited by BaneTrapper, 18 December 2012 - 09:03 AM.

#5DpakoH  Members

Posted 18 December 2012 - 09:06 AM

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.

#6Sandman  Members

Posted 18 December 2012 - 09:26 AM

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.

#7Mike.Popoloski  Members

Posted 18 December 2012 - 10:55 AM

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, 18 December 2012 - 10:58 AM.

Mike Popoloski | Journal | SlimDX

#8Gavin Williams  Members

Posted 18 December 2012 - 11:36 AM

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

Edit : Apologies, I assumed that it must be a new feature, if people are claiming they don't have it in 2010.

Edited by Gavin Williams, 18 December 2012 - 01:55 PM.

#9~Nem  Members

Posted 18 December 2012 - 11:43 AM

I wrote a plug-in for this because I missed the Visual Assist functionality but didn't want to purchase it:
http://nemesis.thewavelength.net/index.php?p=56

It also supports Alt-O to open the .cpp from a .h and vice versa.

#10brx  Members

Posted 18 December 2012 - 12:02 PM

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.

#11BaneTrapper  Members

Posted 18 December 2012 - 12:56 PM

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

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, 18 December 2012 - 05:01 PM.

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.