目前我是使用 vscode 远程开发 java,插件也是安装在远程的。
Java: Clean the Java language server workspace
比如某些 web 上下类的属性赋值有问题,(我只遇到过一次,属性始终不变,实际上 idea 也遇到过,就是一些内存问题) ,建议重新打开 vscode,idea 也是要重新打开
{
"workbench.colorTheme": "Darcula (IntelliJ)",
"java.semanticHighlighting.enabled": true,
"git.enableSmartCommit": true,
"maven.executable.preferMavenWrapper": true,
"java.import.maven.enabled": true,
"java.configuration.maven.userSettings": "/opt/apache-maven-3.6.3/conf/settings.xml",
"maven.executable.path": "/opt/apache-maven-3.6.3/bin/mvn",
"maven.excludedFolders": [
"**/.*",
"**/node_modules",
"**/target",
"**/bin"
],
"java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx512m -Xms100m -javaagent:\"/home/android/.vscode-server/extensions/gabrielbb.vscode-lombok-1.0.1/server/lombok.jar\"",
// "java.home": "/usr/lib/jvm/java-11-openjdk-arm64",
"java.home": "/usr/local/java11",
"search.exclude": {
"bin": true,
"**/bin": true,
"**/logs": true,
"**/target": true
},
"maven.pomfile.autoUpdateEffectivePOM": true,
"maven.terminal.useJavaHome": true,
"java.completion.importOrder": [
"java",
"javax",
"com",
"org"
],
"java.configuration.runtimes": [
{
"name": "JavaSE-1.8",
"path": "/usr/local/java1.8",
"default": true
},
{
"name": "JavaSE-11",
"path": "/usr/local/java11",
}
],
"git.autofetch": true,
"java.configuration.checkProjectSettingsExclusions": false,
}
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.