The environment
macOS+VSCode
Installing the runtime (JDK)
Oracle official website :Java SE 16, select the DMG file of the corresponding system, download it, and install it
Inspection: the Java version
Install the VSCode plug-in
- Language Support for Java(TM) by Red Hat
- Debugger for Java
- Java Test Runner
- Maven for Java
Compile operation
After integrating the above plug-ins, right-click between Run Code
The actual command is CD “~/homework3/” && javac testdemo. Java && Java TestDemo
Create a project
Command +shift+p:
All information defaults to enter, and finally the project structure