Recently, Microsoft officially released. NET code and ASP. Tried to use under Linux. NET Code and ASP.
Specifically, how to use. NET code and ASP. Read "How to feel. NET core's new development experience through a few Hello World" written by old A. Here is mainly written in CentOS 7 installation of Visual stdio Code.
Environmental parameters:
Operating system version: centos-7-x86_64-1511
Software version: Visual Stdio code 1.2
Operation Steps:
1. Download vscode_x86_64.rpm
2. Install RPM in root or normal user.
Method 1 is installed directly
Method 2 download to the file directory, right-click Install or use the command (yum install)
3. Verify Installation Success
In the Command window, enter "code--version" to display the installation successfully
or see if visual Stdio code is installed in the application's setup program
4, pay attention to the use of ordinary users open Vscode
No response when clicking Launch with the root user. In the Command window, enter "code--version", output
"It's recommended to start Vscode as a normal user. To run as root, you must specify a alternate user data directory with the--user-data-dir argument. "
In general, it is recommended to use a normal user to open the Vscode, if under root, you need to specify a user's data directory.
How to open the root under the need to re-study, currently under the ordinary user, can already use Vscode
Open in the way:
Mode 1 Enter "code" in the command window
Mode 2 opens in the application's setup program with visual actions
Refer to Microsoft Official address: Https://code.visualstudio.com/docs/setup/linux
Centos 7 Installation Visual stdio Code