vscode 给 Maven 启动的 JVM 加上 `-Dfile.encoding=UTF-8`
·
ctrl+p
setting.json

"terminal.integrated.defaultProfile.windows": "Command Prompt",
"terminal.integrated.profiles.windows": {
"Command Prompt": {
"path": "C:\\Windows\\System32\\cmd.exe",
"args": ["/K", "chcp", "65001"]
}
},
"terminal.integrated.env.windows": {
"JAVA_TOOL_OPTIONS": "-Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8"
}
{
"editor.quickSuggestions": {
"strings": true
},
"html.format.wrapAttributes": "force-expand-multiline",
"workbench.startupEditor": "newUntitledFile",
"eslint.validate": [
"javascript",
"javascriptreact"
],
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"editor.codeActionsOnSave": {},
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"typescript.updateImportsOnFileMove.enabled": "always",
"editor.renderWhitespace": "none",
"javascript.updateImportsOnFileMove.enabled": "never",
"editor.tabSize": 2,
"html.format.contentUnformatted": "",
"terminal.integrated.tabs.enabled": true,
"eslint.codeAction.showDocumentation": {
"enable": false
},
"explorer.confirmDelete": false,
"search.followSymlinks": false,
"github.copilot.enable": {
"*": true,
"yaml": false,
"plaintext": true,
"markdown": false
},
"security.workspace.trust.untrustedFiles": "open",
"[vue]": {
"editor.defaultFormatter": "Vue.volar"
},
"volar.autoCompleteRefs": true,
"volar.codeLens.pugTools": true,
"volar.codeLens.scriptSetupTools": true,
"volar.splitEditors.layout.left": [
"script",
"scriptSetup",
"styles"
],
"volar.splitEditors.layout.right": [
"template",
"customBlocks"
],
"volar.vueserver.json.customBlockSchemaUrls": {},
"editor.fontVariations": false,
"git.suggestSmartCommit": false,
"git.allowNoVerifyCommit": true,
"window.menuBarVisibility": "compact",
"diffEditor.ignoreTrimWhitespace": false,
"diffEditor.hideUnchangedRegions.enabled": true,
"remote.SSH.remotePlatform": {
"10.10.1.199": "linux"
},
"thiefBook.filePath": "D:\\工具\\ccc.txt",
"chat.commandCenter.enabled": false,
"typescript.tsserver.maxTsServerMemory": 13072,
"vue.server.hybridMode": false,
"thiefBook.currPageNumber": 705,
"AI.toolcall.confirmMode": "autoRun",
"redhat.telemetry.enabled": true,
"vsicons.dontShowNewVersionMessage": true,
"AI.toolcall.v2.ide.mcp.autoRun": "alwaysRun",
"workbench.iconTheme": "vscode-icons",
"git.openRepositoryInParentFolders": "never",
"AI.task.endSound": false,
"AI.toolcall.v2.command.allowList": "[\"npm\"]",
"files.autoGuessEncoding": true,
"maven.settingsFile": "",
"maven.terminal.customEnv": [
{
"environmentVariable": "MAVEN_OPTS",
"value": "-Dfile.encoding=UTF-8"
}
],
"terminal.integrated.defaultProfile.windows": "Command Prompt",
"terminal.integrated.profiles.windows": {
"Command Prompt": {
"path": "C:\\Windows\\System32\\cmd.exe",
"args": ["/K", "chcp", "65001"]
}
},
"terminal.integrated.env.windows": {
"JAVA_TOOL_OPTIONS": "-Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8"
}
}
更多推荐
所有评论(0)