Thursday, June 7, 2018

Visual Studio

Visual Studio 2017 Customization

Dark Theme

Tools > Options > Environment > General > Color theme: Dark

When you open the IDE it shows a useless startup page which wastes time closing.

Tools > Options > Environment > Startup > At startup: Show empty environment

In code, above each function it shows grey text like "0 references" which wastes screen space and shows annoying popups when your mouse passes over.

Tools > Options > Text Editor > All Languages > CodeLens > [uncheck] Enable CodeLens

Don't get tabs in bat files.

Tools > Options > Text Editor > Plain Text > Tabs > 2, 2, Insert spaces

Don't show the black box at the top center of debugged WPF windows.

Tools > Options > Debugging > General > [uncheck] Enable UI Debugging Tools for XAML

Custom [File > Open] location.

Tools > Options > Projects and Solutions > Locations > Projects location = [your location]

Associate instead of Resolve on checkin.

Tools > Options > Source Control > Visual Studio Team Foundation Server > [uncheck] Resolve associated work items on check-in

When you start debugging the default sidebar shows diagnostic tools and the solution explorer is collapsed. It's better without diagnostics and with solution explorer.

X on Diagnostic Tools.
Expand "Solution Explorer" from right-hand side.
Click the sideways pin to undo Auto-Hide.
View > Team Explorer (to also get team explorer in this sidebar, so debug is like develop)

Avoid the IDE suggesting style that conflicts with stylecop.

Tools > Options > Text Editor > C# > Code Style
 'this.' preferences:
  [whatever]  Do not prefer 'this.'
{ "loggedin": false, "owner": false, "avatar": "", "render": "nothing", "trackingID": "UA-36983794-1", "description": "", "page": { "blogIds": [ 676 ] }, "domain": "", "base": "\/michael", "url": "https:\/\/\/michael\/", "frameworkFiles": "https:\/\/\/michael\/_framework\/_files.4\/", "commonFiles": "https:\/\/\/michael\/_common\/_files.3\/", "mediaFiles": "https:\/\/\/michael\/media\/_files.3\/", "tmdbUrl": "http:\/\/\/", "tmdbPoster": "http:\/\/\/t\/p\/w342" }