You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/get-started/includes/git-source-control.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ To associate your code with Git, you start by creating a new Git repository wher
20
20
21
21
1. In the **Create a Git repository** dialog box, sign in to GitHub.
22
22
23
-
:::image type="content" source="../media/vs-2022/git-create-repo.png" alt-text="Screenshot of the Create a Git Repository dialog window where you can sign in to GitHub.":::
23
+
:::image type="content" source="../media/vs-2022/git-create-repo.png" alt-text="Screenshot of the Create a Git Repository dialog window where you create a new GitHub repository.":::
24
24
25
25
The repository name auto-populates based on your folder location. By default, your new repository is private, which means you're the only one who can access it.
26
26
@@ -29,9 +29,9 @@ To associate your code with Git, you start by creating a new Git repository wher
29
29
30
30
1. Select **Create and Push**.
31
31
32
-
After you create your repository, you see status details in the status bar.
32
+
After you create your repository, status details appear in the status bar.
33
33
34
-
:::image type="content" source="../media/vs-2022/git-new-private-repo-status-details.png" alt-text="Screenshot of the repo status bar that's below the Solution Explorer pane in Visual Studio.":::
34
+
:::image type="content" source="../media/vs-2022/git-new-private-repo-status-details.png" alt-text="Screenshot of the repo status bar located below the Visual Studio Solution Explorer pane, showing the branch name and number of outstanding changes.":::
35
35
36
36
The first icon with the arrows shows how many outgoing/incoming commits are in your current branch. You can use this icon to pull any incoming commits or push any outgoing commits. You can also choose to view these commits first. To do so, select the icon, and then select **View Outgoing/Incoming**.
Copy file name to clipboardExpand all lines: docs/linux/cmake-linux-configure.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,7 @@ When you do a build:
108
108
109
109
## Choose a Linux target
110
110
111
-
When you open a CMake project folder, Visual Studio parses the *CMakeLists.txt* file and specifies a Windows target of **x86-Debug**. To target a remote Linux system, you'll change the project settings based on your Linux compiler. For example, if you're using GCC on Linux and compiling with debug info, choose: **Linux-GCC-Debug** or **Linux-GCC-Release**.
111
+
When you open a CMake project folder, Visual Studio parses the *CMakeLists.txt* file, and specifies a Windows target of **x86-Debug**. To target a remote Linux system, you'll change the project settings based on your Linux compiler. For example, if you're using GCC on Linux and compiling with debug info, choose: **Linux-GCC-Debug** or **Linux-GCC-Release**.
112
112
113
113
If you specify a remote Linux target, your source is copied to the remote system.
Copy file name to clipboardExpand all lines: docs/linux/connect-to-your-remote-linux-computer.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,11 +64,11 @@ If `ssh` isn't already set up and running on your Linux system, follow these ste
64
64
65
65
1. In the Connection Manager dialog, choose the **Add** button to add a new connection.
66
66
67
-

67
+

68
68
69
69
In either scenario, the **Connect to Remote System** window is displayed.
70
70
71
-

71
+

72
72
73
73
1. Enter the following information:
74
74
@@ -90,7 +90,7 @@ If `ssh` isn't already set up and running on your Linux system, follow these ste
90
90
91
91
If the connection fails, the entry boxes that need to be changed are outlined in red.
92
92
93
-

93
+

94
94
95
95
If you use key files for authentication, make sure the target machine's SSH server is running and configured properly.
96
96
@@ -181,7 +181,7 @@ For example: `HostKeyAlgorithms ssh-dss,ssh-rsa`
181
181
182
182
You can enable logging to help troubleshoot connection problems. On the menu bar, select **Tools > Options**. In the **Options** dialog, select **Cross Platform > Logging**:
183
183
184
-

184
+

185
185
186
186
Logs include connections, all commands sent to the remote machine (their text, exit code and execution time), and all output from Visual Studio to the shell. Logging works for any cross-platform CMake project or MSBuild-based Linux project in Visual Studio.
Copy file name to clipboardExpand all lines: docs/linux/create-a-new-linux-project.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@
2
2
title: "Create a Linux MSBuild C++ project in Visual Studio"
3
3
ms.date: "10/15/2020"
4
4
description: "Create a new MSBuild-based Linux project in Visual Studio."
5
-
ms.assetid: 5d7c1d67-bc31-4f96-8622-2b4cf91372fd
6
5
---
7
6
# Create a Linux MSBuild C++ project in Visual Studio
8
7
@@ -25,7 +24,7 @@ To create a new Linux project in Visual Studio 2017, follow these steps:
25
24
1. Select **File > New Project** in Visual Studio, or press **Ctrl + Shift + N**.
26
25
1. Select the **Visual C++ > Cross Platform > Linux** node, and then select the project type to create. Enter a **Name** and **Location**, and choose **OK**.
27
26
28
-

27
+

29
28
30
29
| Project Type | Description |
31
30
| ------------ | --- |
@@ -52,7 +51,7 @@ To create a new Linux project in Visual Studio, follow these steps:
52
51
1. In the **Search for templates** textbox, enter **Linux** to list the available templates for Linux projects.
53
52
1. Select the project type to create, for example **Console Application**, and then choose **Next**. Enter a **Name** and **Location**, and choose **Create**.
54
53
55
-

54
+

Copy file name to clipboardExpand all lines: docs/linux/deploy-run-and-debug-your-linux-project.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@
2
2
title: "Deploy, run, and debug your Linux MSBuild C++ project in Visual Studio"
3
3
description: "Describes how to compile, execute, and debug code on the remote target from inside a MSBuild-based Linux C++ project in Visual Studio."
4
4
ms.date: "08/08/2020"
5
-
ms.assetid: f7084cdb-17b1-4960-b522-f84981bea879
6
5
ms.custom: intro-deployment
7
6
---
8
7
# Deploy, run, and debug your Linux MSBuild project
@@ -56,11 +55,11 @@ There are several ways to interact with and debug your Linux project.
56
55
57
56
When the remote target is available, you'll see it listed by either name or IP address.
58
57
59
-

58
+

60
59
61
60
If you haven't connected to the remote target yet, you'll see an instruction to use [Linux Connection Manager](connect-to-your-remote-linux-computer.md) to connect to the remote target.
62
61
63
-

62
+

64
63
65
64
1. Set a breakpoint by clicking in the left gutter of some code that you know will execute.
66
65
@@ -126,13 +125,13 @@ You can separate your remote build machine from your remote debug machine for bo
126
125
127
126
By default, the remote debug machine is the same as the remote build machine (**Configuration Properties** > **General** > **Remote Build Machine**). To specify a new remote debug machine, right-click on the project in **Solution Explorer** and go to **Configuration Properties** > **Debugging** > **Remote Debug Machine**.
128
127
129
-

128
+

130
129
131
130
The drop-down menu for **Remote Debug Machine** is populated with all established remote connections. To add a new remote connection, navigate to **Tools** > **Options** > **Cross Platform** > **Connection Manager** or search for "Connection Manager" in **Quick Launch**. You can also specify a new remote deploy directory in the project's Property Pages (**Configuration Properties** > **General** > **Remote Deploy Directory**).
132
131
133
132
By default, only the files necessary for the process to debug will be deployed to the remote debug machine. You can use **Solution Explorer** to configure which source files will be deployed to the remote debug machine. When you click on a source file, you'll see a preview of its File Properties directly below the Solution Explorer.
134
133
135
-

134
+

136
135
137
136
The **Content** property specifies whether the file will be deployed to the remote debug machine. You can disable deployment entirely by navigating to **Property Pages** > **Configuration Manager** and unchecking **Deploy** for the desired configuration.
138
137
@@ -159,7 +158,7 @@ In some cases, you may require more control over your project's deployment. For
159
158
160
159
For CMake projects that target a remote Linux machine, you can specify a new remote debug machine in launch.vs.json. By default, the value of "remoteMachineName" is synchronized with the "remoteMachineName" property in CMakeSettings.json, which corresponds to your remote build machine. These properties no longer need to match, and the value of "remoteMachineName" in launch.vs.json will dictate which remote machine is used for deploy and debug.
161
160
162
-

161
+

163
162
164
163
IntelliSense will suggest all a list of all established remote connections. You can add a new remote connection by navigating to **Tools** > **Options** > **Cross Platform** > **Connection Manager** or searching for "Connection Manager" in **Quick Launch**.
Copy file name to clipboardExpand all lines: docs/linux/download-install-and-setup-the-linux-development-workload.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@
2
2
title: "Install the C++ Linux workload in Visual Studio"
3
3
description: "How to download, install, and set up the Linux workload for C++ in Visual Studio."
4
4
ms.date: "05/03/2020"
5
-
ms.assetid: e11b40b2-f3a4-4f06-b788-73334d58dfd9
6
5
ms.custom: intro-installation
7
6
---
8
7
# Download, install, and set up the Linux workload
@@ -29,11 +28,11 @@ For any of these scenarios, the **Linux development with C++** workload is requi
29
28
30
29
1. Type "Visual Studio Installer" in the Windows search box:
31
30
32
-

31
+

33
32
34
33
1. Look for the installer under the **Apps** results and double-click it. When the installer opens, choose **Modify**, and then click on the **Workloads** tab. Scroll down to **Other toolsets** and select the **Linux development with C++** workload.
35
34
36
-

35
+

37
36
38
37
1. If you're targeting IoT or embedded platforms, go to the **Installation details** pane on the right. Under **Linux development with C++**, expand **Optional Components**, and choose the components you need. CMake support for Linux is selected by default.
Copy file name to clipboardExpand all lines: docs/linux/linux-asan-configuration.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ ASan is a runtime memory error detector for C/C++ that catches the following err
20
20
21
21
When ASan detects an error, it stops execution immediately. If you run an ASan-enabled program in the debugger, you see a message that describes the type of error, the memory address, and the location in the source file where the error occurred:
22
22
23
-

23
+

24
24
25
25
You can also view the full ASan output (including where the corrupted memory was allocated/deallocated) in the Debug pane of the output window.
26
26
@@ -31,26 +31,26 @@ You can also view the full ASan output (including where the corrupted memory was
31
31
32
32
To enable ASan for MSBuild-based Linux projects, right-click on the project in **Solution Explorer** and select **Properties**. Next, navigate to **Configuration Properties** > **C/C++** > **Sanitizers**. ASan is enabled via compiler and linker flags, and requires your project to be recompiled to work.
33
33
34
-

34
+

35
35
36
36
You can pass optional ASan runtime flags by navigating to **Configuration Properties** > **Debugging** > **AddressSanitizer Runtime Flags**. Click the down-arrow to add or remove flags.
37
37
38
-

38
+

39
39
40
40
## Enable ASan for Visual Studio CMake projects
41
41
42
42
> [!NOTE]
43
43
> To build with CMake Presets, first enable ASan in your CMakeLists.txt file. For more information, see [Enable AddressSanitizer for Windows and Linux](../build/cmake-presets-vs.md#enable-addresssanitizer-for-windows-and-linux).
44
44
45
-
To enable ASan for CMake, right-click on the CMakeLists.txt file in **Solution Explorer** and choose **CMake Settings for Project**.
45
+
To enable ASan for CMake, right-click on the `CMakeLists.txt` file in **Solution Explorer** and choose **CMake Settings for Project**.
46
46
47
47
Make sure you have a Linux configuration (for example, **Linux-Debug**) selected in the left pane of the dialog:
48
48
49
-

49
+

50
50
51
51
The ASan options are under **General**. Enter the ASan runtime flags in the format "flag=value", separated by spaces. The UI incorrectly suggests using semi-colons. Use spaces or colons to separate flags.
52
52
53
-

53
+

Copy file name to clipboardExpand all lines: docs/linux/set-up-fips-compliant-secure-remote-linux-development.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,11 +99,11 @@ You've successfully set up `ssh`, created and deployed encryption keys, and test
99
99
100
100
1. In the Connection Manager dialog, choose the **Add** button to add a new connection.
101
101
102
-

102
+

103
103
104
104
The **Connect to Remote System** window is displayed.
105
105
106
-

106
+

107
107
108
108
1. In the **Connect to Remote System** dialog, enter the connection details of your remote machine.
109
109
@@ -124,7 +124,7 @@ You've successfully set up `ssh`, created and deployed encryption keys, and test
124
124
125
125
If the connection fails, the entry boxes that need to be changed are outlined in red.
126
126
127
-

127
+

128
128
129
129
For more information on troubleshooting your connection, see [Connect to your remote Linux computer](connect-to-your-remote-linux-computer.md).
0 commit comments