Skip to content

Instantly share code, notes, and snippets.

@LadyNaggaga
Created April 19, 2017 13:43
Show Gist options
  • Save LadyNaggaga/17326443c3e51390ca435c24bc437f59 to your computer and use it in GitHub Desktop.
Save LadyNaggaga/17326443c3e51390ca435c24bc437f59 to your computer and use it in GitHub Desktop.
Visual Studio 2017
Visual Studio Samples
-- Live Unit Testing Icons
> Continually runs and checks for working code
> Automatically finds and runs tests as you are updating your code
> Red Xs have failing tests associated with them
> Green checks are all tests passing
> Minus signs have no test coverage
 
Click the X to see the tests covering the code
Dbl click to see the test
 
-- New Exception helper in 2017
>> Most important information displayed at the top level
 
 
-- Gray dotted line indicating a recommended best practice
>>>  New Class with object initializers
>>>  ctrl-. to active the suggestion
 
-- Code Style Configuration and Enforcement directly in the
              editor and live
-- options >> Code Style
-- change var for built-in types
>>>>  set error / suggestion level
>>>>  error level will block compilation
 
-- Code Actions available to help reformat code
>>> If statement with multiple else clauses WITHOUT braces
>>>  ctrl-. add braces
>>>>  Can even apply this fix to all instances of the problem
 
--->>>  Live unit testing verifies that the refactoring did NOT
              effect my code, because all tests still pass
 
-- Bottom icon tray in intellisense to allow filtering by
             signature types
>>>  hover to show keyboard shortcuts
>>>  Intellisense highlighting - bold parts of the signature
 
 
-- Go to all -- ctrl-t
>>> go to any method, class, file, or signature
>>> filter at the bottom of the popup,
              including scope limits on the right
 
-- Docker support
>> Build ASP.NET Core container
>>>> Switch Docker to Windows Containers
>> Build ASP.NET Web Forms container
 Resources
https://blogs.msdn.microsoft.com/visualstudio/2017/03/09/live-unit-testing-in-visual-studio-2017-enterprise/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment