1: Download VSCODE
I had written a vscode write java post, but still a lot of people my private letter, write a taught process below
Original Address: https://www.cnblogs.com/dgwblog/p/9117850.html
Latest Download: https://code.visualstudio.com
General recommended not to download the installation package installation, installation archive is recommended. Win64 10 environment
1.1 arrow Other download
1.2 the arrow 64 to download the installation package
Click below 1.3 and later to the page selection direct download link. Download
2: Installation
After extracting shown below 2.1
2.2 to create a desktop shortcut for Code
And an increase in the target range increased information
The following is not mandatory: do not add information download the following plugins will be installed in the following path Win user APPDATA
the Z-dir---extensions: \ VSCode \ Extensions
# I is
Z: \ VSCode-win32-x64-1.40.1 \ Code.exe --extensions-dir Z: \ vscode \ extensions
3: Install the plug-in
The following plug-in installation screenshots
4: configuration environment
Just create a workspace in your code disk: to a reference structure
Shortcut key ctrl +, or
Set to enter the configuration page to find java
Then the following configuration in setting.json [note the path]
{ "java.home": "D:\\Program Files\\Java\\jdk-12.0.2", "editor.suggestSelection": "first", "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", "java.configuration.checkProjectSettingsExclusions": false, "editor.fontSize": 18, "files.autoGuessEncoding":true }
Then configure the startup project
My main configuration Configuration lauch.json
{ // use IntelliSense understanding of the relevant property. // hover to see the existing property description. // For more information, please visit: https://go.microsoft.com/fwlink/?linkid=830387 " Version " : " 0.2.0 " , " the Configurations " : [ { " of the type " : " the Java " , " name " : " CodeLens (Launch) - Main " , " Request " : ", "mainClass": "app.Main", "projectName": "Solutions" }, ] }
Run the program
Note: Do not think that was allowed
5: Debugger
Then debug breakpoint on the line marked with the shortcut keys F5