Hello World

吞风吻雨葬落日 欺山赶海踏雪径

0%

vscode 配置记录

vscode 配置记录

编辑器

字体

首选项(Preferences)》设置 》搜索:font 》修改对应配置。

主题

Code BLUE 主题色

https://sujansundareswaran.com/code-blue/

F1 命令面板,输入ext install Sujan.code-blue 安装主题插件。

Java环境

官方文档
https://code.visualstudio.com/docs/languages/java

前期准备

  1. 安装 JDK
  2. 安装 maven
  3. 安装vscode https://code.visualstudio.com/download

安装插件

vscode推荐的常用java插件

其他插件查看官网文档
https://code.visualstudio.com/docs/languages/java

Language Support for Java(TM) by Red Hat

java环境的基础插件
https://marketplace.visualstudio.com/items?itemName=redhat.java

jdk的查找顺序

1
2
3
4
5
6
7
Setting the JDK
The path to the Java Development Kit is searched in the following order:

- the java.home setting in VS Code settings (workspace then user settings)
- the JDK_HOME environment variable
- the JAVA_HOME environment variable
- on the current system path

Debugger for Java

轻量级的java debug插件
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-debug

安装方法

Open VS Code and press F1 or Ctrl + Shift + P to open command palette,
select Install Extension and type vscode-java-debug.

Or launch VS Code Quick Open (Ctrl + P),
paste the following command, and press enter.

1
ext install vscode-java-debug