Visual Studio

Editions

  • There are many editions of Visual Studio.

  • Visual Studio Community - A fully-featured, extensible, free IDE for creating modern applications for Android, iOS, Windows, as well as web applications and cloud services.

  • For advanced programming courses get Visual Studio Enterprise, see the Software page.

Installation

  • For information on how to download and install Visual Studio, see Install Visual Studio.

  • Workloads can be chosen during installation or from the "Install more tools and features" link in the New Project dialog.

Useful Workloads

  • Add from the Tools menu "Get tools and features"

  • Desktop development with C++ - for basic C++ development

  • Universal Windows Platform development - for GUI C++ development

  • ASP.Net and web development - for Blazor development

Useful Components

  • Class Designer - once installed, right click on a file that includes a class in the Solution Explorer and click View Class Diagram

Style & Quality

General

  • Auto Format: Hold down the Control key, then press K followed by D.

    • In Tools > Options > Text Editor > C/C++ > Code Style > Formatting

      • Set Default formatting style to Google

    • In Tools > Options > Text Editor > C/C++ > General

      • Check box for Word Wrap (box for Show visual glyphs for word wrap should also be checked)

  • Build > Run Code Analysis on Solution (Alt+F11)

C++