{"id":220815,"date":"2020-11-20T23:08:34","date_gmt":"2020-11-20T15:08:34","guid":{"rendered":"http:\/\/4563.org\/?p=220815"},"modified":"2020-11-20T23:08:34","modified_gmt":"2020-11-20T15:08:34","slug":"vscode-%e5%86%99-java-%e5%85%a8%e6%8f%92%e4%bb%b6%e6%94%bb%e7%95%a5","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=220815","title":{"rendered":"VSCODE \u5199 Java \u5168\u63d2\u4ef6\u653b\u7565"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  VSCODE \u5199 Java \u5168\u63d2\u4ef6\u653b\u7565               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : byte10 <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<h2>vscode \u4e0b\u5f00\u53d1 java<\/h2>\n<p>\u76ee\u524d\u6211\u662f\u4f7f\u7528 vscode \u8fdc\u7a0b\u5f00\u53d1 java\uff0c\u63d2\u4ef6\u4e5f\u662f\u5b89\u88c5\u5728\u8fdc\u7a0b\u7684\u3002<\/p>\n<h2>java \u5f00\u53d1\u7684\u751f\u4ea7\u529b\u63d2\u4ef6<\/h2>\n<ul>\n<li>Darcula Theme \u4f5c\u7528\uff1aDarcula theme for Visual Studio Code based on IntelliJ IDEA<\/li>\n<li>IntelliJ IDEA Keybindings<\/li>\n<li>Checkstyle for Java \u4f5c\u7528\uff1a\u68c0\u67e5\u4ee3\u7801\uff0c\u56e0\u4e3a\u5de5\u4f5c\u5f15\u5165\u4e86\u8fd9\u4e2a gradle \u63d2\u4ef6\u68c0\u67e5\uff0c\u6240\u4ee5\u6211\u4e5f\u5f15\u5165\u8fd9\u4e2a\u63d2\u4ef6\u68c0\u67e5<\/li>\n<li>Git Graph \u4f5c\u7528\uff1a\u5f88\u76f4\u89c2\u7684 git \u5206\u652f\u67e5\u770b\uff0c\u8ddf idea \u7684\u6709\u5f97\u6bd4<\/li>\n<li>Gradle Language Support \u4f5c\u7528\uff1agradle \u9879\u76ee\u7684\u652f\u6301\uff0c\u53ef\u6709\u53ef\u65e0<\/li>\n<li>Gradle Tasks \u4f5c\u7528\uff1agradle \u9879\u76ee\u7684\u652f\u6301\uff0c\u53ef\u6709\u53ef\u65e0<\/li>\n<li>Java Decompiler \u4f5c\u7528\uff1a\u5fc5\u987b\u7684\uff0c\u4e0d\u7136\u65e0\u6cd5\u67e5\u770b\u5176\u5b83 jar \u5305\u7684 class \u6587\u4ef6<\/li>\n<li>Java Extension Pack \u4f5c\u7528\uff1a\u57fa\u672c\u7684\u63d2\u4ef6\u4e86\uff0c\u5fc5\u987b\u7684\n<ul>\n<li>Language Support for Java(TM) by Red Hat<\/li>\n<li>Debugger for Java<\/li>\n<li>Java Test Runner<\/li>\n<li>Maven for Java<\/li>\n<li>Project Manager for Java<\/li>\n<li>Visual Studio IntelliCode \u667a\u80fd\u63d0\u793a\u4ee3\u7801<\/li>\n<\/ul>\n<\/li>\n<li>Lombok Annotations Support for VS Code<\/li>\n<li>Redis \u4f5c\u8005: Dunn<\/li>\n<li>XML \u4f5c\u8005: Red Hat<\/li>\n<li>YAML \u4f5c\u8005: Red Hat<\/li>\n<li>Java P3C Checker \u4f5c\u7528: alibaba \u89c4\u8303\u63d2\u4ef6\uff08\u8ddf idea \u5dee\u4e0d\u591a\uff09\uff0cAlibaba Java Coding Guidelines Check<\/li>\n<\/ul>\n<h2>\u4f7f\u7528\u611f\u53d7<\/h2>\n<ul>\n<li>1 \u3001\u5b9e\u9645\u4e0a vscode \u662f\u65e0\u6cd5\u8ddf idea \u6bd4\u7684\uff0c\u4f46\u662f\u57fa\u672c\u5f00\u53d1\uff0c\u8c03\u8bd5 \u5565\u7684\u8fd8\u662f\u6ca1\u4ec0\u4e48\u95ee\u9898\u3002<\/li>\n<li>2 \u3001\u5177\u4f53\u7684\u7ec6\u8282\u6211\u8fd8\u771f\u6ca1\u7814\u7a76\uff0cidea \u4e5f\u7528\u4e86\u4e09\u5e74\u4e86\uff0c\u90fd\u662f\u7b80\u5355\u4f7f\u7528\uff0c\u5b83\u786e\u5b9e\u5f88\u667a\u80fd\uff0c\u6bd4\u5982\u5728 yml \u5c31\u53ef\u4ee5\u8df3\u5230\u5177\u4f53\u7684\u914d\u7f6e\u7c7b\uff0c\u5728 xml \u914d\u7f6e\u7684 bean \u4e5f\u53ef\u4ee5\u8df3\u5230\uff0c\u5728 mybatis \u914d\u7f6e namespace \u4e5f\u80fd\u8df3\u5230\u5177\u4f53\u63a5\u53e3\u7c7b\u3002<\/li>\n<li>3 \u3001\u53ef\u4ee5\u770b\u51fa vscode \u4e2d java \u4e0d\u65ad\u7684\u5b8c\u5584\uff0c\u4ece\u63d2\u4ef6\u66f4\u65b0\u901f\u5ea6\u548c\u5b8c\u6574\u6027\u90fd\u53ef\u4ee5\u770b\u5230\u5f88\u6d3b\u8dc3\u3002\u81f3\u4e8e\u80fd\u8fbe\u5230 idea \u591a\u5c11\u6210\u7684\u80fd\u529b\uff0c\u6211\u4e0d\u597d\u5224\u65ad\uff0c\u76ee\u524d\u5f00\u53d1\u591f\u7528\u3002\u4e0d\u5efa\u8bae\u5927\u5bb6\u8fdb\u5751\uff0c\u6709\u9047\u5230\u95ee\u9898\u53ef\u4ee5\u56de\u590d\u6211<\/li>\n<\/ul>\n<h2>\u4f18\u70b9<\/h2>\n<ul>\n<li>1 \u3001\u5f53\u7136\u662f\u4f7f\u7528\u6e05\u723d\u5566\uff0c\u6253\u5f00\u901f\u5ea6\u8fd8\u53ef\u4ee5\uff0c\u4e0d\u5360\u5185\u5b58\u5566\uff0c\u800c\u4e14\u6bd5\u7adf\u8fdc\u7a0b\u5f00\u53d1\uff08\u8fdc\u7a0b\u5f00\u53d1\u4e00\u5b9a\u8981\u5728\u5c40\u57df\u7f51\u5185\u673a\u5668\uff0c\u4e0d\u7136\u96be\u53d7\u7a0b\u5ea6\u5c31\u662f\u738b\u8005 460 \u4f53\u9a8c\uff09<\/li>\n<li>2 \u3001vscode \u7684\u9664\u4e86\u652f\u6301 java \u8fd8\u80fd\u652f\u6301\u5176\u4ed6\u8bed\u8a00\uff0c\u6211\u4e00\u822c\u5f00\u53d1\u5c0f\u7a0b\u5e8f \u4e5f\u8981\u8981\u7528\u5230\uff0c\u6240\u4ee5\u7edf\u4e00\u5f00\u53d1\u4f53\u9a8c\u3002<\/li>\n<li>3 \u3001\u63d2\u4ef6\u4e30\u5bcc\uff0c\u57fa\u672c\u5b83\u90fd\u63d0\u793a\u4f60\u63a8\u8350\u4f60\u4e00\u4e9b\u63d2\u4ef6\u3002<\/li>\n<li>4 \u3001\u5176\u4ed6\u7684 \u4f60\u4eec\u8865\u5145\u5427\uff0c\u6211\u61d2\u5f97\u5199\u4e86<\/li>\n<\/ul>\n<h2>\u5e38\u89c1\u95ee\u9898<\/h2>\n<ul>\n<li>\u5982\u679c\u9879\u76ee\u9047\u5230\u65e0\u6cd5\u8fd0\u884c\u5404\u79cd\u95ee\u9898\uff0c\u53ef\u4ee5\u6267\u884c\u4e0b\u9762\u547d\u4ee4<\/li>\n<\/ul>\n<p>Java: Clean the Java language server workspace<\/p>\n<ul>\n<li>\u5982\u679c\u8fd0\u884c\u4e2d\u7684\u9879\u76ee\u9047\u5230\u8c03\u8bd5\u95ee\u9898<\/li>\n<\/ul>\n<p>\u6bd4\u5982\u67d0\u4e9b web \u4e0a\u4e0b\u7c7b\u7684\u5c5e\u6027\u8d4b\u503c\u6709\u95ee\u9898\uff0c\uff08\u6211\u53ea\u9047\u5230\u8fc7\u4e00\u6b21\uff0c\u5c5e\u6027\u59cb\u7ec8\u4e0d\u53d8\uff0c\u5b9e\u9645\u4e0a idea \u4e5f\u9047\u5230\u8fc7\uff0c\u5c31\u662f\u4e00\u4e9b\u5185\u5b58\u95ee\u9898\uff09 \uff0c\u5efa\u8bae\u91cd\u65b0\u6253\u5f00 vscode\uff0cidea \u4e5f\u662f\u8981\u91cd\u65b0\u6253\u5f00<\/p>\n<h2>\u914d\u7f6e\u6587\u4ef6 settings.json\uff0c\u53ef\u4ee5\u53c2\u8003\u4e0b<\/h2>\n<pre><code>{     \"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,     }  <\/code><\/pre>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4447192\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tgich <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u5c31\u8bf4\u4e00\u53e5\uff0c\u5185\u5b58\u4e0d\u7528\u7559\u7740\u5e72\u561b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4447193\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : byte10 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @tgich \u7559\u7740\u770b\u7f51\u9875\u5457\uff0cchrome \u5403\u5185\u5b58\u3002\u8fdc\u7a0b\u5f00\u53d1\u4e5f\u4e0d\u5360\u786c\u76d8\u5730\u65b9\uff0c\u4e0d\u5360 cpu \u548c\u5185\u5b58\u3002frp \u540e\uff0cipad \u90fd\u53ef\u4ee5\u8fdb\u884c\u8fdc\u7a0b\u7f16\u7a0b\uff0c\u56de\u5bb6\u53ef\u4ee5\u5904\u7406\u7b80\u5355\u7684 BUG \u3002idea \u968f\u4fbf 3-5g\uff0c\u592a\u591a\u4e86\uff0c\u5185\u5b58\u4e0d\u591f\u591a\u7684\u673a\u5668\u6709\u70b9\u5403\u529b\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4447194\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : AEDaydreamer <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u529f\u80fd\u6027\u63d2\u4ef6\u57fa\u672c\u548c\u5217\u8868\u7684\u4e00\u6837,\u53ea\u4e0d\u8fc7\u6211\u4e3b\u9898\u662f one dark pro \u8fd8\u6709\u4e00\u4e2a todo \u63d2\u4ef6 Todo+                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4447195\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : byte10 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @AEDaydreamer TODO \u597d\u50cf\u662f\u81ea\u5e26\u7684\u5427\uff1f\u6211\u8fd9\u8fb9\u80fd\u663e\u793a TODO\uff0c\u4e0d\u77e5\u9053\u662f checkStyle \u63d2\u4ef6\u5e26\u6765\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4447196\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fpure <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u9519\uff0c\u6211\u4e5f\u662f vscode \u4e00\u628a\u68ad                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4447197\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : byte10 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @fpure \u611f\u89c9\u8fd8\u884c\uff0c\u8fd8\u6ca1\u9047\u5230\u975e idea \u4e0d\u53ef\u7684 \u95ee\u9898                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>VSCODE \u5199 Java \u5168\u63d2\u4ef6&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/220815"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=220815"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/220815\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=220815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=220815"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=220815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}