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/linux/connect-to-your-remote-linux-computer.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ When building a C++ Linux project in Visual Studio, Linux code is copied to your
33
33
| **User name** | User to authenticate as
34
34
| **Authentication type** | Password or Private Key are both supported
35
35
| **Password** | Password for the entered user name
36
-
| **Private key file** | Private key created for ssh connection
36
+
| **Private key file** | Private key file created for ssh connection
37
37
| **Passphrase** | Passphrase used with private key selected above
38
38
39
39
1. Click the **Connect** button to attempt a connection to the remote computer. If the connection fails, the entry boxes which need to be changed will be outlined in red.
First, make sure you have the **Linux Development Workload** for Visual Studio installed. For more information, see [Download, install, and setup the Linux workload](download-install-and-setup-the-linux-development-workload.md).
17
+
15
18
When coding C++ in Visual Studio for Linux, you have the choice of creating a Visual Studio project, or a CMake project. This topic describes how to create a Visual Studio project. For information about CMake Projects, see [Configure a Linux CMake Project ](cmake-linux-project.md).
16
19
17
20
To create a new Linux project in Visual Studio, do the following:
To use the Visual Studio IDE to createand debug C++ projects on Linux, you must install the **Linux development with C++** workload.
17
+
You can use the Visual Studio IDE in Windows to create, edit and debug C++ projects that execute on a Linux physical computer, virtual machine, or the [Windows Subsystem for Linux](/windows/wsl/about). For any of these scenarios, first install the **Linux development with C++** workload.
18
18
19
19
## Visual Studio setup
20
-
1. Start the Visual Studio installer and select the **Linux development with C++** workload.
21
20
22
-

21
+
1. Type "Visual Studio Installer" in the Windows search menu, look for it 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.
23
22
24
-
2. Click **Install** to continue with the installation.
23
+

24
+
25
+
1. If you use CMake or you are 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.
26
+
27
+
1. Click **Modify** to continue with the installation.
28
+
29
+
30
+
## Options for creating a Linux environment
31
+
32
+
If you don't already have a Linux machine, you can create a Linux Virtual Machine on Azure. For more information, see [Quickstart: Create a Linux virtual machine in the Azure portal](/azure/virtual-machines/linux/quick-create-portal).
33
+
34
+
Another option, on Windows 10, is to activate the Windows Subsystem for Linux. For more information, see [Windows 10 Installation Guide](/windows/wsl/install-win10).
25
35
26
36
## Linux setup
27
-
The target Linux computer must have **openssh-server**, **g++**, **gdb**, and **gdbserver** installed, and the ssh daemon must be running. If these are not already present, you can install them as follows:
28
-
37
+
38
+
The target Linux computer must have **openssh-server**, **g++**, **gdb**, and **gdbserver** installed, and the ssh daemon must be running. **zip** is required for automatic syncing of remote headers with your local machine for Intellisense support. If these applications are not already present, you can install them as follows:
You may be prompted for your root password due to the sudo command. If so, enter it and continue. Once complete, these services and tools will be installed.
34
45
35
46
1. Ensure the ssh service is running on your Linux computer by running:
36
47
37
48
`sudo service ssh start`
38
-
49
+
39
50
This will start the service and run it in the background, ready to accept connections.
0 commit comments