使用 vscode 开发 Java 怎么样?

2018-11-08 16:39:24 +08:00
 Kaiv2

个人感觉不错,速度挺快,缺点是对单元 junit 的支持不太友好

15870 次点击
所在节点    Java
31 条回复
wleexi
2018-11-08 20:12:29 +08:00
junit 支持不是大问题. https://github.com/Microsoft/vscode-java-test
就是配置比较繁琐,还有效率上和 IDE 比并不是很有优势。
wleexi
2018-11-08 20:16:22 +08:00
看上面回复的几个插件,只要安装 https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack
就可以的了。目前 code 的 java 插件是几个公司一起做的。
darkcode
2018-11-09 00:06:39 +08:00
@murmur 宇宙第一 VS 要支持 JAVA 了
sytnishizuiai
2018-11-09 00:25:37 +08:00
看见隔壁前端用 vscode,正好是 git 界面,界面很多色彩,但不妖艳,比我用 phpstorm 活泼年轻多了。
可惜买了全家桶 而且用习惯了。
waterlaw
2018-11-09 00:30:25 +08:00
编辑器之神 Emacs 和神之编辑器 Vim , 如何?
qcts33
2018-11-09 14:35:54 +08:00
@lihongjie0209 不懂 Java 开发,不过 Java 应该也算是 Microsoft 重点支持的语言之一,看样子生态圈的支持也问题不大,当然肯定没有 IDE 那么成熟。
https://code.visualstudio.com/docs/java/java-tutorial
lihongjie0209
2018-11-09 17:46:02 +08:00
@wleexi 你怕是对 java 生态有什么误解

vscode 支持的:

Language Support for Java™ by Red Hat
Code Navigation
Auto Completion
Refactoring
Code Snippets
📦 Debugger for Java
Debugging
📦 Java Test Runner
Run & Debug JUnit Test Cases
📦 Maven Project Explorer
Project Scaffolding
Custom Goals


idea 支持的:

.ignore (2.3.0)
ANSI Highlighter (1.2.3)
BashSupport (1.6.12.172)
Grep Console (8.1.162.000.0)
JRebel for IntelliJ (2018.1.5)
Maven Helper (3.6.172.1454.0)
Power Mode II (3.14.159265)
Rainbow Brackets (5.5)
Translation (1.3.6)
Builder Generator (1.1.7)
CamelCase (2.0.0)
ClearCase Integration (2.0)
CodeGlance (1.5.4)
codehelper.generator (2018.06.24)
Copyright (8.1)
Coverage (172.4343.14)
CSS Support (172.4343.14)
Custom Postfix Templates (1.6.5)
CVS Integration (11)
Database Tools and SQL (172.4343.14)
DSM Analysis (1.0.0)
EditorConfig (172.4343.14)
File Watchers (172.4343.25)
FindBugs-IDEA (1.0.1)
Free MyBatis plugin (2018.05.17)
FreeMarker support (1.0)
GenerateAllSetter (2.0)
GenerateCopyConstructor (1.2)
GenerateSerialVersionUID (3.0.3)
Git Integration (8.1)
GitHub (172.4343.14)
GsonFormat (1.5.0)
Hibernate Support (1.0)
HTML Tools (2.0)
I18n for Java (172.4343.14)
Ideolog (172.0.4.0)
Ini4Idea (172.3317.57)
IntelliLang (8.0)
Java Bytecode Decompiler (172.4343.14)
Java EE: Bean Validation Support (1.1)
Java EE: EJB, JPA, Servlets (1.0)
Java Server Pages (JSP) Integration (1.0)
Java Stream Debugger (0.1.6)
JavaScript Debugger (1.0)
JavaScript Intention Power Pack (0.9.4)
JavaScript Support (1.0)
jclasslib Bytecode viewer (5.2)
Jetty Integration (1.0)
JUnit (1.0)
LiveEdit (172.4343.25)
Markdown support (172.4343.14)
Maven Integration (172.4343.14)
Maven Integration Extension (172.4343.14)
nginx Support (0.1.6)
Nyan Progress Bar (1.11)
Perforce Integration (2.0)
Persistence Frameworks Support (1.0)
Properties Support (172.4343.14)
QuirksMode (172.4343.14)
Remote Hosts Access (0.1)
REST Client (172.4343.14)
RoboPOJOGenerator (1.9.1)
Settings Repository (172.4343.14)
Spring AOP/@AspectJ (1.0)
Spring Batch (1.0)
Spring Boot (1.0)
Spring Data (1.0)
Spring Integration Patterns (1.0)
Spring MVC (1.0)
Spring OSGi (1.0)
Spring Security (1.0)
Spring Support (1.0)
Spring Web Flow (1.0)
Spring Web Services (1.0)
Spring WebSocket (1.0)
SSH Remote Run (0.1)
String Manipulation (6.1.143.000.0)
Task Management (1.0)
Terminal (0.1)
Time Tracking (1.0)
Velocity support (1.0)
VisualVM Launcher (1.10.138.2210)
XPathView + XSLT Support (4)
YAML (172.4343.14)
YAML/Ansible support (0.9.5)
Android Support (10.2.3)
AngularJS (172.4343.14)
Ant Support (1.0)
Application Servers View (0.2.0)
ASM Bytecode Outline (0.3.5)
ASP (0.1)
AspectJ Support (1.2)
Bytecode Viewer (0.1)
CFML Support (3.53)
Cloud Foundry integration (1.0)
CloudBees integration (1.0)
CoffeeScript (2.0)
Cucumber for Groovy (999.999)
Cucumber for Java (999.999)
dmServer Support (0.9.5)
Eclipse Integration (3.0)
Emma (172.4343.14)
Flash/Flex Support (172.4343.14)
Geronimo Integration (1.0)
Gherkin (999.999)
GlassFish Integration (1.0)
Google App Engine Integration (1.1.4)
Gradle (172.4343.14)
Grails (9.0)
Groovy (9.0)
Guice (8.0)
GWT Support (1.0)
Haml (172.4343.14)
Heroku integration (1.0)
hg4idea (10.0)
J2ME (1.0)
Java EE: Batch Applications (1.0)
Java EE: Contexts and Dependency Injection (1.1)
Java EE: Java Server Faces (2.2.X.)
Java EE: JMS, JSON Processing, Concurrency, Transaction (1.0)
Java EE: RESTful Web Services (JAX-RS) (1.0)
Java EE: Web Services (JAX-WS) (1.9)
Java EE: WebSockets (1.0)
JavaFX (1.0)
JBoss Arquillian Support (1.0)
JBoss Drools Support (1.0)
JBoss Frameworks Base Support (1.0)
JBoss Integration (1.0)
JBoss jBPM (2.0.0)
JBoss Seam Pageflow Support (1.0)
JBoss Seam Pages Support (1.0)
JBoss Seam Support (1.0)
Jenkinsfile IDEA plugin (1.0)
Jonnyzzz Dependencies (1.0.10)
JSR45 Integration (1.0)
Kotlin (1.1.4-release-IJ2017.2-3)
Less support (172.4343.14)
OpenShift integration (1.0)
Osmorc (1.4.10)
Playframework Support (1.0)
Plugin DevKit (1.0)
Python (2017.2.172.3968.33)
Refactor-X (2.01)
Resin Integration (8.1)
Sass support (172.4343.14)
Scala (2017.2.13)
soapUI Plugin (3.5)
Spy-js (172.4343.14)
Struts 1.x (2.0)
Struts 2 (1.0)
Stylus support (999.999)
Subversion Integration (1.1)
Tapestry support (1.0)
TestNG-J (8.0)
TFS Integration (999.999)
Thymeleaf (1.0)
Tomcat and TomEE Integration (1.0)
tslint (172.4343.14)
UI Designer (172.4343.14)
UML Support (1.0)
Vaadin Support (1.0)
Vue.js (172.3968.20)
W3C Validators (2.0)
WebLogic Integration (1.0)
WebSphere Integration (1.0)
XSLT-Debugger (1.4)
ZKM-Unscramble (1.0)
xiangbohua
2018-11-09 19:46:12 +08:00
毕竟只是一个编辑器,和 IDE 功能比还是少很多。
当然了,大神用 vim 也可以
wleexi
2018-11-10 11:04:06 +08:00
@lihongjie0209 你所列举的 vscode 我说一个 pack 就能装全了有什么不对么。并没有与 IDE 比较的意思。
a132811
2019-11-25 23:12:42 +08:00
最近用 vscode 构建 java 项目,感觉还不错,以后应该会越来越成熟
AceDogs
2019-11-29 11:19:40 +08:00
目前装上测试了一把, 什么自动导入, 代码补全, 都没啥问题了。貌似现金了不少。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/505837

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX