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"
            ]
        }
    ]
}
相关推荐
tryCbest26 分钟前
Java实现文件下载
java·开发语言
Yunfeng Peng27 分钟前
1- 十大排序算法(选择排序、冒泡排序、插入排序)
java·算法·排序算法
断剑zou天涯1 小时前
【算法笔记】二叉树递归解题套路及其应用
java·笔记·算法
武子康2 小时前
Java-136 深入浅出 MySQL Spring Boot @Transactional 使用指南:事务传播、隔离级别与异常回滚策略
java·数据库·spring boot·mysql·性能优化·系统架构·事务
533_2 小时前
[vscode] Tab键无法缩进
vscode
微笑尅乐8 小时前
力扣350.两个数组的交集II
java·算法·leetcode·动态规划
rzjslSe8 小时前
【JavaGuide学习笔记】理解并发(Concurrency)与并行(Parallelism)的区别
java·笔记·学习
青柠编程9 小时前
基于Spring Boot的竞赛管理系统架构设计
java·spring boot·后端
꒰ঌ 安卓开发໒꒱9 小时前
Java面试-并发面试(二)
java·开发语言·面试
Mr.Aholic9 小时前
Java系列知识之 ~ Spring 与 Spring Boot 常用注解对比说明
java·spring boot·spring