views:

2627

answers:

25

There are so many little options and settings within Microsoft Visual Studio. Which adjustments do you recommend to others?

+33  A: 
Zack Peterson
I'd prefer Cntrl + g to go to a specific line. :)
RWendi
Line numbers are helpful when you're working, locally or remotely, with another developer. "Look at lines 25-30."
Michael Petrotta
WEll you can just look at the status bar and check the line you are instead of having 1/4 inch took for nothing about 95% of time ;)
Daok
Like Daok said - this seems like HUGE waste of space and I don't think I can ever remember needing them. CTRL-G also works for me.
Tim
I cannot imagine working without line numbers
lucian.jp
Line numbers also indicate how much is hidden inside collapsed regions, something you can't see from a single number on the status bar.
Ed Guiness
+2  A: 
Zack Peterson
This doesn't seem to be available in the Express version and that makes me sad.
bouvard
Bouvard, remmember to check the "Show All Settings" button, at the buttom of the dialog
Jesper Blad Jensen aka. Deldy
+2  A: 

Check out this thread for the Color theme options for Visual Studio http://stackoverflow.com/questions/141371/which-visual-studio-color-theme

And consolas is my favourite font

Jobi Joy
+3  A: 
Zack Peterson
Consolas is much better imho.
Mark S. Rasmussen
Droid Sans Mono 10pt has reduced my eye fatigue measurably.
bouvard
dina font: http://www.donationcoder.com/Software/Jibz/Dina/
Dustin Getz
http://stackoverflow.com/questions/485174/programming-fonts :)
whatknott
+6  A: 

Tools -> Options -> Environment -> Keyboard

Setup a shortcut to close the active document. Ctrl+Alt+W in my case.

Mark S. Rasmussen
whats wrong with control+f4?
Dested
control-f4 is a lot harder to hit than something like ctrl-w (which most apps use to close windows, both in Windows and OSX).
Joseph Daigle
ctrl-f4 works in pretty much every application with tabs.
Dustin Getz
I have ctrl+shift+x I thought it was default...
texmex5
I use Control-W, which is the same as the shortcut to close the current tab in some browsers.
Kyralessa
+5  A: 

Personally i hate that VS defaults to "Tab to Spaces" when you are developing in C#. This is so awkward to work with and unnecessary.

Yes, i know there are issues with Tabs but honestly, did any of you ever encounter them coding in C# on Windows?

steffenj
You will if you have a team where one developer doesn't like the default tab width.
Joel Coehoorn
That is just a display issue and can be configured on each computer without affecting anyone else. However, if one developer does have "tabs to spaces" on and all source files he touched are converted to spaces ... well, that just sucks.
steffenj
I totally agree - to save others time: Tools > Options > Text Editor > All Languages > Tabs > Keep tabs
Cory House
getting your team to use anything but the default settings is an uphill battle.
Dustin Getz
and you can use intelligent diffing software if you do run into whitespace commits.
Dustin Getz
I hate to start a religious war, but only infidels would check in files with \t instead of spaces.
Frank Schwieterman
Tabs are evil, spaces FTW
Benjol
I don't get it, why are tabs evil? I've never had any issues.
rball
"Insert spaces" is evil, If by any reason code gets indented when typing a '}' then all tabs upwards are converted to spaces. That is really a pain in the @ss when diffing the change log, or even worse when doing a Blame (thats the name of the operation in TortoiseSVN, don't know how it's commonly knonwn in other tools) of the source file.
Fede
catchmeifyoutry
+13  A: 
John Sibly
This screenshot makes me think I need to clean my display.
Chris
A: 

Besides, Line Numbers, the first thing I always do in a newly-installed IDE is set the Edit.GoToDefinition keyboard shortcut.

Tools > Options > Keyboard

Kon
this is usually defaults to F12 already
DK
But isn't what I'm used to. To each his/her own. :)
Kon
+4  A: 
Zack Peterson
Wow, a joke. From Microsoft. I'm flabbergasted.
MPelletier
+8  A: 

Gotta have the tab indention set up right.

Also, Consolas & Color Themed - white backgrounds hurt my eyes

thismat
And what, pray, is 'right' tab indentation? (runs for cover...)
Benjol
Purely subjective of course, but I prefer double spaces instead of tabs, so I like to set VS to convert it as such.
thismat
+4  A: 
lyngbym
I personally find this distracting. A keyboard shortcut that found the active item would be nice though.
Greg
I found it distracting too. So I use Add-in (http://www.codeproject.com/KB/macros/VSHelper.aspx) to quickly find document when I need it.
Juozas Kontvainis
+3  A: 
Zack Peterson
+1  A: 

Its all about Resharper ;) Gives you tons of shortcuts which are so useful I can no longer work without them. I don't get on with the intellisense though, so I've turned that off.

This is incredibly useful, allows you to write underscores with the space bar when writing long test method names.

Andrew Bullock
+12  A: 

Environment->General->Animate environment tools => OFF.

Speeds UI responsiveness by 82%.

Soraz
+1 for making up a very specific percentage :)
Chris
yaah 74% of all percentages are made up on the spot !
Gabe
+4  A: 

Environment => General => Recent files

24 items shown in Window menu

24 items shown in recently used lists

Environment => General

Show status bar ON

Animate environment tools OFF

Alan
+6  A: 
Zack Peterson
+1  A: 

This applies to winform projects.

Instead of opening the form in design mode by default, you can configure VS to open the code editor instead. This is configured by right-clicking on a form in the solution explorer and choosing the "Open with" option. This gives you a dialog that allows you to specify the default option when double-clicking on a file.

BenR
+3  A: 

Prevent Visual Studio from renaming pasted controls

http://stackoverflow.com/questions/484327/how-do-i-prevent-visual-studio-from-renaming-my-controls#484344

Zack Peterson
A: 

Un-Bold Brace Matching

Tools > Options

Environment > Fonts and Colors

Display items: Brace Matching (Hilight)

uncheck Bold

Zack Peterson
+3  A: 

I'm somewhat surprised to be the first person recommending Visual Studio Hacks for a lot of suggestions of this variety

Lawrence Johnston
+2  A: 

Visible white space. (Edit -> Advanced -> View White Space)

Free Image Hosting by FreeImageHosting.net

The default color is too strong. I immediately change it to silver. (Tools -> Options -> Fonts and Colors -> Visible White Space).

Silver visible white space

On some displays, even silver is too strong, and I create a "light silver".

Free Image Hosting by FreeImageHosting.net

Jay Bazuzi
This would be easier to follow if your screenshots weren't overly compressed. Next time you might want to use png rather than jpeg, it is lossless and for screenshots without embedded photos usually ends up smaller than a resasonable quality jpeg.Make whitespace visible using: Edit>Advanced>View White Spaceor pressing Ctrl+E,Ctrl+STo set the colour, use Tools>Option>Fonts and Colors>Visible White Space.
Mark Booth
Thanks @Mark. FreeImageHosting.net isn't doing a great job for me, either. I've edited to state the menu items in the text.
Jay Bazuzi
+3  A: 

Window Layouts

This really isn't a setting but something I always do is back up my settings via Tools > Import and Export Settings.

I make sure to back up my window layouts for both single and multiple monitors. It saves frustration when moving from my multi-monitor setup to a single monitor for a presentation.

Not to mention, it makes it easy to get up and running on a new PC.

whatknott
+1  A: 

Find and Replace window’s "Search Hidden Text" checkbox.

It's not really a preference but it is indispensable. It sure is frustrating when you don’t notice that it "magically" unchecked itself.

Scott Dowding
+2  A: 

In a control's properties, setting GenerateMembers to false for items you don't need (labels, etc). It's not a specifically Visual-Studio thing, more related to the platform, but mixed with the contextual list of objects and functions, it just clears up so much clutter.

MPelletier
A: 

When designing a form:

View > Tab Order

Allows you you specify and control your TabIndexes easily (much more so than setting them by hand!)

MPelletier