Presentation is loading. Please wait.

Presentation is loading. Please wait.

Tips and Tricks in Visual Studio 2017

Similar presentations


Presentation on theme: "Tips and Tricks in Visual Studio 2017"— Presentation transcript:

1 Tips and Tricks in Visual Studio 2017
9/20/2018 9:53 AM BRK3192 Tips and Tricks in Visual Studio 2017 Kasey Uhlenhuth Program Manager @kuhlenhuth © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

2 Agenda Tips and Tricks for performance and reliability
9/20/2018 9:53 AM Agenda Tips and Tricks for performance and reliability Tips and Tricks for Visual Studio Tips and Tricks for .NET in Visual Studio © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

3 Performance Tips New install SxS support Full solution analysis
9/20/2018 9:53 AM Performance Tips New install SxS support Full solution analysis Out-of-process analysis Lightweight solution load (Track active item in solution explorer) © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

4 .NET Tips and Tricks in VS2017

5 Maximize Your Coding Space
9/20/2018 9:53 AM Maximize Your Coding Space Reset window layout Turn off line numbers via Quick Launch Full screen mode Turn off margins via Quick Launch View white space Ctrl+Tab between open files Ctrl+T to navigate to files (camelCase matching!) Turn off CodeLens © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

6 Customize Your Coding Space
9/20/2018 9:53 AM Customize Your Coding Space Extensions (Color Theme Editor) Fonts and Colors (selected text, structure visualizer (2017), font size, suggestion ellipses (2017)) Custom keyboard shortcuts (HotKeys extension) Export/Import VS Settings © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

7 Navigate Your Code Ctrl+Tab Ctrl+T (Go To All, 2017)
9/20/2018 9:53 AM Navigate Your Code Ctrl+Tab Ctrl+T (Go To All, 2017) Ctrl+; (Solution Explorer) CodeLens (customize to only references) F12 Family F12 – Go To Definition Shift+F12 – Find All References Ctrl+F12 – Go To Implementation (2015) Alt+F12 – Peek Definition Ctrl+Click for GoToDef (2017) Ctrl+Plus and Ctrl+Minus © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

8 Source Control Bottom bar (change branch, commit changes, push)
9/20/2018 9:53 AM Source Control Bottom bar (change branch, commit changes, push) Team Explorer Undo changes Compare with unmodified View history © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

9 Text Manipulation Alt+Up/Down - to move lines
9/20/2018 9:53 AM Text Manipulation Alt+Up/Down - to move lines Ctrl+L, V - to cut a line and paste (Duplicate Text coming soon!) Ctrl+K,C / K,U - to comment/uncomment Shift+Enter - “smart” line break Alt+Shift+Arrows – box selection Ctrl+Bkspc – delete word © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

10 IntelliSense Settings (for VB/C# mixed, change Enter key behavior)
9/20/2018 9:53 AM IntelliSense Settings (for VB/C# mixed, change Enter key behavior) Filtering and highlighting (2017) in completion list Smart variable naming (2017) for C#/VB Hold Ctrl to make invisible ‘K’ Family Ctrl+K, P – See parameter info Ctrl+K, I – Quick Info (same as hover) Ctrl+K, L – List members Ctrl+<space> © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

11 Debugging Step into Specific Conditional Breakpoint
9/20/2018 9:53 AM Debugging Cloud Explorer Function Family F5 – start debugging F9 – toggle breakpoint F10 – step over F11 – step into Step into Specific Conditional Breakpoint Run to click (2017) Exception Helper (2017) LINQ and lambdas in Watch window (2015) © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

12 .NET Tips and Tricks in VS2017

13 Live Unit Testing Turn on with solution load Live test sets
9/20/2018 9:53 AM Live Unit Testing Turn on with solution load Live test sets Battery saver Navigation © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

14 Code Analysis Bulk suppress (2015) Scrollbar to see errors (map mode)
9/20/2018 9:53 AM Code Analysis Bulk suppress (2015) Scrollbar to see errors (map mode) Code Style via Tools>Options and EditorConfig (2017) 3rd-party analyzers © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

15 Refactorings and Quick Fixes
9/20/2018 9:53 AM Refactorings and Quick Fixes Extract method Inline temporary variable/introduce variable Add null check Move type to file Fix misspelling Add using for types on NuGet Add parameter/generate constructor © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

16 Resources Editorconfig for code style: Refactorings and quick actions: HotKeys Extension:

17 Please evaluate this session
Tech Ready 15 9/20/2018 Please evaluate this session From your Please expand notes window at bottom of slide and read. Then Delete this text box. PC or tablet: visit MyIgnite Phone: download and use the Microsoft Ignite mobile app Your input is important! © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

18 9/20/2018 9:53 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.


Download ppt "Tips and Tricks in Visual Studio 2017"

Similar presentations


Ads by Google