From 68c9550eeefefaa64b79e27a0e2b7fce34802838 Mon Sep 17 00:00:00 2001 From: borb Date: Thu, 3 Jul 2025 17:26:45 +0300 Subject: [PATCH] finish lecture 1.5 --- 1.5-introduction-to-visual-studio-slides.html | 159 ++++++++++++++++++ 1.5-introduction-to-visual-studio.md | 104 +++++++++--- 2 files changed, 242 insertions(+), 21 deletions(-) create mode 100644 1.5-introduction-to-visual-studio-slides.html diff --git a/1.5-introduction-to-visual-studio-slides.html b/1.5-introduction-to-visual-studio-slides.html new file mode 100644 index 0000000..0ce30a6 --- /dev/null +++ b/1.5-introduction-to-visual-studio-slides.html @@ -0,0 +1,159 @@ +1.5. Introduction to Visual Studio
+

Introduction to Visual Studio

+
+
+

Overview

+
    +
  • Visual Studio An IDE (Integrated development environment) by Microsoft for Windows
  • +
  • Used for C#, C++, etc
  • +
  • There's a free Community edition
  • +
  • Multiple versions released +
      +
    • First version: 1997
    • +
    • 2017, 2019, 2022...
    • +
    +
  • +
  • Not to be confused with Visual Studio Code, a separate code editor by Microsoft
  • +
+
+
+

Features

+ +
+
+

Projects and solutions

+
    +
  • In Visual Studio, there are two key concepts, projects and solutions + +
  • +
  • A project contains all files that are compiled into an executable application +
      +
    • Source code, images, data files, etc
    • +
    • Compiler settings, configuration files
    • +
    • In C#, handled by the project file .csproj by MSBuild
    • +
    • Creating a new project
    • +
    +
  • +
  • A solution contains one or multiple projects +
      +
    • Build information, Visual Studio window settings
    • +
    • Files that aren't associated with a particular project
    • +
    • .sln is the solution file, .suo contains Solution User Options
    • +
    +
  • +
+
+
+

Visual Studio UI

+
+
+

+
+
+

Default view in Visual Studio consists of three panels.

+
    +
  1. Code editor
  2. +
  3. Solution Explorer (CTRL+ALT+L) shows the files in the project
  4. +
  5. Terminal (CTRL+Ö) for entering command line commands (e.g., for using Git)
  6. +
+
+
+
+
+

Moving windows around

+
+
+
    +
  • Drag and hold windows to move them around +
      +
    • Snap to layout window appears
    • +
    +
  • +
  • After moving a window to the right, you can pin it to see its title on the right
    +
  • +
+
+
+

+
+
+
+
+

Keyboard shortcuts

+
    +
  • CTRL+. +
      +
    • If a type is missing, use this to add the needed using directive
    • +
    +
  • +
  • CTRL+R, then CTRL+R (seriously?) +
      +
    • Rename variable
    • +
    • Press Enter to confirm
    • +
    +
  • +
  • CTRL+C (without selecting), then CTRL+V +
      +
    • Duplicate line
    • +
    +
  • +
  • ALT+Up, ALT+Down +
      +
    • Move line up/down
    • +
    +
  • +
  • Visual Studio Default keyboard shortcuts
  • +
+
+
+

Gotchas

+
    +
  • Some actions are unavailable when your app is running +
      +
    • Deleting files
    • +
    • Adding new controllers
    • +
    +
  • +
+
+
+

Reading

+ +
+
\ No newline at end of file diff --git a/1.5-introduction-to-visual-studio.md b/1.5-introduction-to-visual-studio.md index 3ee5694..e178ddb 100644 --- a/1.5-introduction-to-visual-studio.md +++ b/1.5-introduction-to-visual-studio.md @@ -1,49 +1,111 @@ -# Introduction to Visual Studio +--- +marp: true +paginate: true +math: mathjax +theme: buutti +title: 1.5. Introduction to Visual Studio +--- -![](imgs/15%20Introduction%20to%20Visual%20Studio_0.png) +# Introduction to Visual Studio ---- + + -# Overview +## Overview -* An IDE (Integrated development environment) by Microsoft for Windows -* Debug tools +* [Visual Studio](https://visualstudio.microsoft.com/) An IDE (Integrated development environment) by Microsoft for Windows * Used for C#, C++, etc -* Free Community edition +* There's a free Community edition * Multiple versions released * First version: 1997 - * 2017, 2019, 2022… + * 2017, 2019, 2022... +* Not to be confused with [Visual Studio Code](https://code.visualstudio.com/), a separate code editor by Microsoft -# Windows +## Features -_Solution Explorer_ (CTRL+ALT+L) shows the files in the project +* [Debug tools](https://learn.microsoft.com/en-us/visualstudio/debugger/?view=vs-2022) +* [Build tools](https://learn.microsoft.com/en-us/visualstudio/ide/compiling-and-building-in-visual-studio?view=vs-2022) +* [IntelliSense](https://learn.microsoft.com/en-gb/visualstudio/ide/visual-csharp-intellisense?view=vs-2022) + * code completion aid + * automatic code generation +* [GitHub Copilot](https://learn.microsoft.com/en-us/visualstudio/ide/visual-studio-github-copilot-extension?view=vs-2022) and [IntelliCode](https://learn.microsoft.com/en-us/visualstudio/ide/intellicode-visual-studio?view=vs-2022), AI-assisted code development in VS +* [Git integration](https://learn.microsoft.com/en-us/visualstudio/version-control/git-with-visual-studio?view=vs-2022) +* [Testing tools](https://learn.microsoft.com/en-us/visualstudio/test/?view=vs-2022) +* [Profiling and diagnostics tools](https://learn.microsoft.com/en-us/visualstudio/profiling/?view=vs-2022) -_Terminal _ (CTRL+Ö) for command line stuff, like using Git +## Projects and solutions -# Moving windows around +* In Visual Studio, there are two key concepts, ***projects*** and ***solutions*** + * Here's Microsoft's documents for [what they are](https://learn.microsoft.com/en-us/visualstudio/ide/solutions-and-projects-in-visual-studio?view=vs-2022&source=recommendations) and [how to create them](https://learn.microsoft.com/en-gb/visualstudio/get-started/tutorial-projects-solutions?view=vs-2022) +* A ***project*** contains all files that are compiled into an executable application + * Source code, images, data files, etc + * Compiler settings, configuration files + * In C#, handled by the project file `.csproj` by [MSBuild](https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild?view=vs-2022) + * [Creating a new project](https://learn.microsoft.com/en-us/visualstudio/ide/create-new-project?view=vs-2022) +* A ***solution*** contains one or multiple projects + * Build information, Visual Studio window settings + * Files that aren't associated with a particular project + * `.sln` is the solution file, `.suo` contains Solution User Options -![](imgs/15%20Introduction%20to%20Visual%20Studio_1.png) +## Visual Studio UI + +
+
+ +![w:800](https://devblogs.microsoft.com/visualstudio/wp-content/uploads/sites/4/2023/05/a-design-mock-of-the-new-visual-studio-ui-in-dark.png) + +
+
+ +Default view in Visual Studio consists of three panels. +1) Code editor +2) [Solution Explorer](https://learn.microsoft.com/en-us/visualstudio/ide/use-solution-explorer?view=vs-2022) (*CTRL+ALT+L*) shows the files in the project +3) **_Terminal_** (*CTRL+Ö*) for entering command line commands (e.g., for using Git) + +
+
+ + + +## Moving windows around + +
+
* Drag and hold windows to move them around - * _Snap to layout_ window appears + * _Snap to layout_ window appears * After moving a window to the right, you can pin it to see its title on the right - ![](imgs/15%20Introduction%20to%20Visual%20Studio_2.png) -# Keyboard shortcuts +
+
-* CTRL+. +![](imgs/15%20Introduction%20to%20Visual%20Studio_1.png) + +
+
+ +## Keyboard shortcuts + +* *CTRL+.* * If a type is missing, use this to add the needed using directive -* CTRL+R, then CTRL+R (seriously?) +* *CTRL+R*, then *CTRL+R* (seriously?) * Rename variable * Press Enter to confirm -* CTRL+C (without selecting), then CTRL+V +* *CTRL+C* (without selecting), then *CTRL+V* * Duplicate line -* ALT+Up, ALT+Down +* *ALT+Up*, *ALT+Down* * Move line up/down +* [Visual Studio Default keyboard shortcuts](https://visualstudio.microsoft.com/vs/features/develop/) -# Gotchas +## Gotchas * Some actions are unavailable when your app is running * Deleting files * Adding new controllers + +## Reading + +* [Visual Studio Documentation: Overview](https://learn.microsoft.com/en-gb/visualstudio/get-started/visual-studio-ide?view=vs-2022) +* [Visual Studio tutorials | C#](https://learn.microsoft.com/en-us/visualstudio/get-started/csharp/?view=vs-2022) +* [Tutorial: Create a .NET console application using Visual Studio](https://learn.microsoft.com/en-gb/dotnet/core/tutorials/with-visual-studio) \ No newline at end of file