目前我是使用 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,
}
1
tgich 2020-12-04 11:32:06 +08:00
我就说一句,内存不用留着干嘛
|
2
byte10 OP @tgich 留着看网页呗,chrome 吃内存。远程开发也不占硬盘地方,不占 cpu 和内存。frp 后,ipad 都可以进行远程编程,回家可以处理简单的 BUG 。idea 随便 3-5g,太多了,内存不够多的机器有点吃力。
|
3
AEDaydreamer 2020-12-04 14:40:36 +08:00
我功能性插件基本和列表的一样,只不过我主题是 one dark pro 还有一个 todo 插件 Todo+
|
4
byte10 OP @AEDaydreamer TODO 好像是自带的吧?我这边能显示 TODO,不知道是 checkStyle 插件带来的
|
5
fpure 2020-12-05 14:11:11 +08:00 via Android
不错,我也是 vscode 一把梭👍🏻
|
7
rehoni 2021-11-29 03:06:05 +08:00 via Android
离线服务器+公司 maven 私服…怎么说
|