Installation Guide vscode write python, C ++ environment settings:

0, download the official vscode version; 
1, provided that: Local To install the python version, and then install vscode for python plug; 
2, open vscode, ctrl + p, enter ext install python, select the most downloaded item, usually the first that is can; 
3, the new python file, enter the test code, F5 to compile, compile the general need to choose the type; you can separate them again later set; 
4, recommended plug: vscode-icons, you can make vscode the left side of the Explorer based on the file type display icons, looks better; 
5, the configuration flake8: 
write code after installation flake8 when the editor will prompt what went wrong, not standardized code format will prompt; 
open a command line 
input "pip install flake8" 
after the successful installation flake8 open VScode, file -> Preferences -> user settings, enter "python.linting.flake8Enabled" in settings.json file: to true 
settings.json file: 
{ 
    "python.linting.flake8Enabled": to true, 
    "python.pythonPath": "E: \\ \\ Python36-32 python.exe" 
} 


VSCode write C ++ code program: (msvc2015) 
reference: official website documentation is sufficient;
https://code.visualstudio.com/docs/cpp/config-msvc#_configure-the-compiler-path 
https://code.visualstudio.com/docs/languages/cpp 

. 1, VSCode installation c / C ++ plug; 
2 after the new project folder: 
in the case where the folder .vscode comprising: 
c_cpp_properties.json 
launch.json 
tasks.json 
above three profiling compilers to facilitate vscode compiled C ++ code; 

Note: could not find a set of paths comprising isochronous, the need to set the environment variable, if set still can not find the file, and then find the corresponding directory under an acknowledged: 
the following path for reference, modify it as needed: 
12.0 \ Program files (x86) \ in the Microsoft Visual Studio: only C \ VC \ bin ", on this path in the 
" C: \ Program Files (x86 ) \ Microsoft Visual Studio 12.0 \ VC \ include ", the variable named INCLUDE put in 
" C: \ Program Files (x86 ) \ Microsoft Visual Studio 12.0 \ VC \ lib " , this place called lIB

  

Guess you like

Origin www.cnblogs.com/hujianglang/p/12484495.html