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"
            ]
        }
    ]
}
相关推荐
jxy99987 小时前
mac mini 安装java JDK 17
java·开发语言·macos
biyezuopinvip7 小时前
基于Spring Boot的企业网盘的设计与实现(毕业论文)
java·spring boot·vue·毕业设计·论文·毕业论文·企业网盘的设计与实现
Hx_Ma167 小时前
SSM搭建(三)Spring整合SpringMVC框架
java·后端·spring
无风听海7 小时前
.NET10之ASP.NET Core的Filter管线
java·asp.net·.net
少许极端7 小时前
算法奇妙屋(二十八)-递归、回溯与剪枝的综合问题 1
java·算法·深度优先·剪枝·回溯·递归
Boop_wu7 小时前
简单介绍 JSON
java·开发语言
知识即是力量ol8 小时前
初识 Kafka(一):分布式流平台的定义、核心优势与架构全景
java·分布式·kafka·消息队列
-嘟囔着拯救世界-8 小时前
【2026 最新版】OpenAI 祭出王炸 GPT-5.3-Codex!Win11 + VSCode 部署保姆级教程
vscode·gpt·chatgpt·node.js·node·codex·gpt5
爱吃生蚝的于勒8 小时前
【Linux】线程概念(一)
java·linux·运维·服务器·开发语言·数据结构·vim
kong79069288 小时前
Nginx性能优化
java·nginx·性能优化