We have a large solution with 86 projects. Everything is divided up into "solution folders". I find it rather difficult to find what I'm looking for. Is there a way to turn off solution folders just for me without affecting anyone else using the solution?
Have you considered navigating to a file by keyboard?
Visual Assist has an "Open file in solution" dialog which very convenient due to instant search. If you don't have VAssist (which you really should) I believe the free DPack has some equivalent.
If you need to perform file-specific operations in the solution tree, you can bind this macro to a key and execute it after opening a file:
DTE.ExecuteCommand("View.TrackActivityinSolutionExplorer")
DTE.ExecuteCommand("View.TrackActivityinSolutionExplorer")
DTE.Windows.Item(Constants.vsWindowKindSolutionExplorer).Activate()
This will track your file in the solution tree and focus on it.
No, there isn't, not directly.
You could probably write a macro that clears them out of the solution file, just for you, however.
Related
If there are lots of projects in one solution and each of them has lots of .cs file.
Also, there might be one more classes in one file.
So, what I want to ask is: How can I find a file or a class quickly?
I really don't like use the ctrl+F every time.
Is there any plugin like if I click the CTRL+SHIFT+R it will open a window of show a class list or a file list and I can input the keyword what I'd like to find.
Then, when I double click the result, the file will be opened for me.
In VS2010 at least, there is the Navigate To feature. It indexes file names, classes, and methods for quick searching. Hit Ctrl+, (comma) to bring up the dialog:
Also, if you don't mind paying (and getting additional features), there is Visual Assist X and ReSharper, both of which I believe support VS2008/VS2010 and have source navigation features.
You can try out the "Productivity Power Tools" extension for VS2010.
It adds a new menu called "Solution Navigator", which has a search box with autosuggest, that enables searching your solution.
it has lots of other features and I highly recommend it.
I've been using Solution Explorer since I started with VS 2k3 and at this point my preference is as much inertia as anything else, so I'm wondering what features the other solution visualization options in Visual Studio had that might make them more useful.
I could just fiddle with the other two, but that method's much better at identifying what features they don't have that Solution Explorer does than at spotting what they do better.
The Solution Navigator is part of the Power Tools, not Visual Studio (directly). It is basically a replacement for Solution Explorer and Class View both (which are part of VS, and have been for a long time), as well as giving you the ability to search quickly for things, pivot on a type or file, etc.
The searching feature is by far the one that I use the most in Solution Navigator. Being able to search very quickly for types and files within your solution is very powerful once you get used to the functionality.
I have yet to find a faster way to open a file than with Solution Navigator.
Either copy and paste or type a file name into the search box
Double-click the resulting file
The solution I work on is quite big so it can require a lot of clicks to get to the desired file. I spend 90% of the time working with 8-10 files from this solution so it would be really convenient to have some kind of "Favorites" in my solution so I could jump to the most used files quickly. "Recent files" doesn't cut it, so maybe you know some extensions for VS2010 that do that? Google didn't provide any good options so I decided to give it a shot here and ask what do you use.
Thanks in advance
It's not quite what you asked for, but it'll help endlessly:
In vanilla VS2010, hit Ctrl-Comma (by default) for the "Navigate To" window. You can type a partial file, class or method name and it'll show you a list of where that appears in your solution, and you can open directly from there.
The DevExpress plugins also have a "Recently Used File" window (Ctrl-Shift-Period by default, I think) that does similar, but only shows files you've recently used (not classes or methods). I have to say, though, I've not used that since I've had VS2010.
Wow! A question since 2011 that is still valid to date.
From View Menu click Bookmark Window
open your favorite file
click any line - preferably the beginning of the file
from the Bookmarks Window, click the icon "Toggle a bookmark on the current line."
Very convenient!
Haven't tried this particular feature of the PowerTools myself, but it could do the trick:
http://blogs.msdn.com/b/visualstudio/archive/2010/08/03/quick-access-extension.aspx
I'm looking for a way to completely disable the copy/paste functionality in Visual Studio (2005 if it matters). The reason behind this request is that I want to prevent myself from doing too much copy/paste while coding.
Thanks to all for your answers!
No. Use self-discipline instead.
Yes, there is a way.
Download AutoHotKey. Save this as GoAwayN00b.ahk and double click it.
#ifWinActive, ahk_class wndclass_desked_gsk
^c::
^v:: MsgBox Go away n00b !
Additionally, you may want to provide visualisation for xtra stimulation. Save this picture and display it on hotkey press (left for exercise):
alt text http://images.paraorkut.com/img/funnypics/images/g/go_away_noob-12269.jpg
BTW, copy/paste + CLCL = FTW. I don't use VS without it.
EDIT:
Alternativelly, you can Customize Keyboard (right click toolbar -> Customize->Keyboard) and delete Edit.Copy and Edit.Paste hotkies.
However, above script works with any VS and on any computer while this solution needs to be setup individually.
The other day my daughter asked if I had a duller saw so she wouldn't cut herself as easily while pruning some bushes. Of course now it takes longer to prune the bushes...
As asked: The other day my daughter asked if I had a duller saw so she wouldn't cut herself as easily while pruning some bushes. Of course now it takes longer to prune the bushes... Refactored.
For dull saw she asked
No injury while pruning
Free time now all gone
I think you missed the point of the article but in you really want to, here are some resources for battle copypasta.
As Jeff lines out in his current blog entry, copy&paste itself is not the problem, but how you use it. As copy&paste can also be used to speed up "typing"/editing, you shouldn't disable it.
Prise your C button out of the keyboard.
Copy and paste is a valuable tool. You should be careful about what you copy and paste, but you don't need to disable it. Just watch what you're doing.
Don't forget to disable CTRL-drag as well!
Maybe you can find some sort of util that allows you to global remap key combinations. Then all you have to do is re-map the copy/paste combinations do to something else. Just an idea.
Although I think you are crazy for wanting to do it. :)
Write a small service program that will monitor clipboard changes and upon notification replace the clipboard text with "Content protection from lazy asses".
I find the solution explorer is a bit slow to get around in sometimes, and think that there might be a better UI solution out there. I like Ctrl+T but sometimes a visual cue is better than remembering the class name?
I think it would be nice you had a second, similar window, that only shows files that have been opened during the current session? Any other suggestions
If you want to upgrade your experience to the next level, you need to have Visual AssistX.
It enables links between your code and the files it comes from. And it's also light-weight. You will forget the Solution Explorer quite rapidly.
http://www.wholetomato.com
In the toolbar's search box, you can type ">of ". It will give you an intellisense-like dropdown of files in your solution as you type out the filename (e.g. ">of def" will show "default.aspx" and "default.aspx.vb" if those two files are in your solution).
I'm not sure if this any more/less cryptic than ctrl+t, but I thought I'd throw it out there.