V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Kaiv2
V2EX  ›  Java

使用 vscode 开发 Java 怎么样?

  •  
  •   Kaiv2 ·
    JavaHello · 2018-11-08 16:39:24 +08:00 · 15840 次点击
    这是一个创建于 1988 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    第 1 条附言  ·  2018-11-08 22:52:37 +08:00

    vscode java 环境配置 感觉还不错 :)

    31 条回复    2019-11-29 11:19:40 +08:00
    xuanbg
        1
    xuanbg  
       2018-11-08 16:45:58 +08:00   ❤️ 1
    不咋样。。。我试过,和 IDEA 的体验相比,实在是天差地远
    yidinghe
        2
    yidinghe  
       2018-11-08 16:47:50 +08:00 via Android   ❤️ 4
    仍然是个文本编辑器,只不过带了语法高亮和构建工具,但貌似没有代码补完、运行调试和缺陷分析
    Yuicon
        3
    Yuicon  
       2018-11-08 16:57:01 +08:00
    感觉就像长年不写字的人 突然要求全程手写代码一样难受
    ren2881971
        4
    ren2881971  
       2018-11-08 16:58:54 +08:00
    不怎么样。。 给自己找麻烦。
    jiangnanyanyu
        5
    jiangnanyanyu  
       2018-11-08 17:04:48 +08:00 via Android
    你这不是和自己过不去?
    lihongjie0209
        6
    lihongjie0209  
       2018-11-08 17:09:37 +08:00
    有什么想不开的, 你把 IDEA 的自带的插件列出来, 然后在 VScode 中重新装一遍?
    Deville
        7
    Deville  
       2018-11-08 17:10:35 +08:00
    用 electron 写的软件开发 Java - -。。
    johnniang
        8
    johnniang  
       2018-11-08 17:10:39 +08:00 via Android
    别挣扎了,体验特别差,等待以后完善吧
    519718366
        9
    519718366  
       2018-11-08 17:15:39 +08:00
    还能怎么样,我会原地爆炸💥
    janxin
        10
    janxin  
       2018-11-08 17:46:19 +08:00
    不用 IDE 怎么写 Java...
    xpresslink
        11
    xpresslink  
       2018-11-08 17:56:42 +08:00
    这不是找虐的节奏么,VSC 只是个文本编辑器,功能非常 lowB
    还是用 IDEA 吧,实在不愿盗版,用个社区的,或者 eclipes
    OpenJerry
        12
    OpenJerry  
       2018-11-08 18:03:28 +08:00 via Android
    做 spring 全家桶的话,idea ultimate 和 sts 二选一
    murmur
        13
    murmur  
       2018-11-08 18:10:18 +08:00
    IDEA 宇宙第二 IDE
    vsc 在 java 这只能算个记事本启动速度还不如 notepad++快
    jzq526
        14
    jzq526  
       2018-11-08 18:24:45 +08:00
    看你做什么了,如果是入门级别的学习,VSCode 还是不错的。如果是想做点正儿八经的东西,VSCode 虽然在文本编辑器中很优秀,但还是赶不上 IDE,好久没更新的 NetBeans 都比它好得多,何况还有 Eclipse 和 IDEA
    qcts33
        15
    qcts33  
       2018-11-08 18:52:34 +08:00
    虽然没试过,但简单用用应该问题不大,vscode-java 插件是 redhat 贡献的,后台的 language server 是 eclipse 贡献的
    https://github.com/redhat-developer/vscode-java
    https://github.com/eclipse/eclipse.jdt.ls
    Kaiv2
        16
    Kaiv2  
    OP
       2018-11-08 19:36:50 +08:00 via Android
    vscode java 环境配置 http://blog.luokai.ltd/2018/02/26/ubuntu/vscode-java-environment/
    感觉还不错 :)
    PythonAnswer
        17
    PythonAnswer  
       2018-11-08 19:44:52 +08:00 via iPhone   ❤️ 1
    写 java 用 java 写的 ide 写
    lihongjie0209
        18
    lihongjie0209  
       2018-11-08 19:45:54 +08:00
    @qcts33 spring 支持, jpa 支持, servlet 支持, maven 支持, 随便说几个开发常用的, 语言级别的支持只是最基本的, 整个生态圈全支持才是核心
    Kaiv2
        19
    Kaiv2  
    OP
       2018-11-08 19:47:08 +08:00 via Android
    @yidinghe 现在的版本都有了这些功能,可以体验下 :)
    pheyer
        20
    pheyer  
       2018-11-08 20:01:15 +08:00
    我觉得是找死
    wleexi
        21
    wleexi  
       2018-11-08 20:12:29 +08:00
    junit 支持不是大问题. https://github.com/Microsoft/vscode-java-test
    就是配置比较繁琐,还有效率上和 IDE 比并不是很有优势。
    wleexi
        22
    wleexi  
       2018-11-08 20:16:22 +08:00   ❤️ 1
    看上面回复的几个插件,只要安装 https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack
    就可以的了。目前 code 的 java 插件是几个公司一起做的。
    darkcode
        23
    darkcode  
       2018-11-09 00:06:39 +08:00
    @murmur 宇宙第一 VS 要支持 JAVA 了
    sytnishizuiai
        24
    sytnishizuiai  
       2018-11-09 00:25:37 +08:00
    看见隔壁前端用 vscode,正好是 git 界面,界面很多色彩,但不妖艳,比我用 phpstorm 活泼年轻多了。
    可惜买了全家桶 而且用习惯了。
    waterlaw
        25
    waterlaw  
       2018-11-09 00:30:25 +08:00 via Android
    编辑器之神 Emacs 和神之编辑器 Vim , 如何?
    qcts33
        26
    qcts33  
       2018-11-09 14:35:54 +08:00
    @lihongjie0209 不懂 Java 开发,不过 Java 应该也算是 Microsoft 重点支持的语言之一,看样子生态圈的支持也问题不大,当然肯定没有 IDE 那么成熟。
    https://code.visualstudio.com/docs/java/java-tutorial
    lihongjie0209
        27
    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
        28
    xiangbohua  
       2018-11-09 19:46:12 +08:00
    毕竟只是一个编辑器,和 IDE 功能比还是少很多。
    当然了,大神用 vim 也可以
    wleexi
        29
    wleexi  
       2018-11-10 11:04:06 +08:00
    @lihongjie0209 你所列举的 vscode 我说一个 pack 就能装全了有什么不对么。并没有与 IDE 比较的意思。
    a132811
        30
    a132811  
       2019-11-25 23:12:42 +08:00
    最近用 vscode 构建 java 项目,感觉还不错,以后应该会越来越成熟
    AceDogs
        31
    AceDogs  
       2019-11-29 11:19:40 +08:00
    目前装上测试了一把, 什么自动导入, 代码补全, 都没啥问题了。貌似现金了不少。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3264 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 87ms · UTC 12:42 · PVG 20:42 · LAX 05:42 · JFK 08:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.