javaer快速从idea转战vscode

插件安装列表

在插市场安装下面插件

  • Extension Pack for Java
  • Spring Boot Tools 配置文件提示
  • Database Client Database/No-SQL管理工具
  • httpYac - Rest Client .http文件编辑、API测试工具
    https://httpyac.github.io/guide/request.html
  • Git Graph 图形化Git工具
  • XML by Red Hat XML自动提示及格式化
  • YAML by Red Hat K8S自动提示,格式化
  • MybatisX mybatis插件

设置参数setting.json

  • maven建议直接修改./m2/setting.xml
  • 设置自动保存Files: Auto Save
  • 设置控制台打印的编码
    setting.json
bash 复制代码
{
    "http.proxyStrictSSL": false,
    "http.proxyAuthorization": null,
    "cursor.general.disableHttp2": true,
    "git.autofetch": true,
    "redhat.telemetry.enabled": true,
    "database-client.autoSync": true,
    "xml.validation.enabled": false,
    "diffEditor.ignoreTrimWhitespace": false,
    "workbench.editor.limit.enabled": true,
    "files.autoSave": "onFocusChange",
    "git.enableSmartCommit": true,
    "gitlens.views.commitDetails.files.layout": "tree",
    "java.autoAddMissingImports": true,
    "terminal.integrated.defaultProfile.windows": "Command Prompt",
    "terminal.integrated.profiles.windows": {
        "Command Prompt": {
            "path": "cmd.exe
            "args": ["/K", "chcp 65001"],
            "env": {
                "JAVA_TOOL_OPTIONS": "-Dfile.encoding=UTF-8"
            }
        }
    },
}

配置服务启动文件launch.json

bash 复制代码
{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [

        {
            "type": "java",
            "name": "CDCApplication(test3)",
            "request": "launch",
            "mainClass": "com.CDCApplication",
            "projectName": "platform-api-front",
            "vmArgs": [
                "-Dfile.encoding=UTF-8"
            ],
            "encoding": "UTF-8",
            "args": [
                "--spring.application.name=platform-api",
                "--server.port=31500",
                "--spring.cloud.nacos.config.server-addr=127.0.0.1:8848",
                "--spring.cloud.nacos.config.namespace=test-3",
                "--spring.cloud.nacos.config.username=test3",
                "--spring.cloud.nacos.config.password=test3",
                "--spring.cloud.nacos.config.prefix=platform-api",
                "--spring.cloud.nacos.config.shared-dataids=application.yml",
                "--spring.cloud.nacos.config.refreshable-dataids=application.yml,platform-api.yml",
                "--spring.cloud.nacos.discovery.enabled=true",
                "--spring.cloud.nacos.discovery.register-enabled=false",
                "--mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl",
                "--medicalboot.simple-sign=false",
                "--logging.level.com.fpva.fact.mapper=debug",
                "--logging.level.com.fpva.customized.mapper=debug",
                "--logging.level.com.fpva.dal.mapper.*=debug"
            ]
        }
    ]
}
相关推荐
奇文怪式15 分钟前
VSCode+arm-none-eabi-gcc交叉编译+CMake构建+OpenOCD(基于Raspberry Pico RP2040)
arm开发·ide·vscode·rp2040
不学会Ⅳ27 分钟前
Mac M芯片搭建jdk源码环境(jdk24)
java·开发语言·macos
虫小宝31 分钟前
高佣金返利平台监控体系建设:APM、链路追踪与佣金异常预警系统技术实现
java
sniper_fandc1 小时前
SpringBoot系列—入门
java·spring boot·后端
代码的余温3 小时前
Maven引入第三方JAR包实战指南
java·maven·jar
pianmian16 小时前
类(JavaBean类)和对象
java
我叫小白菜6 小时前
【Java_EE】单例模式、阻塞队列、线程池、定时器
java·开发语言
Albert Edison7 小时前
【最新版】IntelliJ IDEA 2025 创建 SpringBoot 项目
java·spring boot·intellij-idea
超级小忍7 小时前
JVM 中的垃圾回收算法及垃圾回收器详解
java·jvm
weixin_446122467 小时前
JAVA内存区域划分
java·开发语言·redis