Try to quit Eclipse and switch to Visual Studio Code

Introduction

My work mainly deals with Java. And I usually use Eclipse as an IDE. Project configuration management is maven.

But recently I started studying golang and started thinking "I wonder if I can unify the IDE ...", and Visual Studio Code is good, right? It is a story that I challenged. At the company, the front end is Angular and uses Visaul Studio Code, and if this can be done, it can be unified! There isn't much merit, though! I felt like.

result

Maybe it's convenient if you haven't mastered it yet or actually add another plugin! There may be something like that. It would be greatly appreciated if you could comment.

-** It can be used enough for personal development! (Rather, I want to use it) ** --Eclipse is recommended for high-spec PCs for projects with 100 people. VS Code for low specs.
Basic maven project Since it is a rule that anything works, what do you recommend? level.
IntelliJ IDEA is popular, but there aren't many people around it who can use it. ――It looks good with Spring Boot!

function Personal evaluation Remarks
Code storage
Import storage ※1
Code format
Display of compilation error
Style check
Debugging function. ※2
Cooperation with git repository ※3
Source template generation × ※4
pom.Dependency display of xml × ※5

○ ・ ・ ・ Can be used enough! △ ・ ・ ・ Some dissatisfaction. × ・ ・ ・ Cannot be used.

Functions expected from IDE (editor) in the first place

If I can achieve this, I'm wondering if Visual Studio Code is fine. The ones listed above have the highest priority.

  1. Code storage. I hate typing.
  2. Import storage. I don't write an import statement.
  3. Code format. I cry if you don't format it.
  4. Display of compilation error location.
  5. Style check. It's a pain if you don't check the rules while coding.
  6. Debugging function. It is difficult to debug unless you click the class displayed in stacktrace and display the corresponding part.
  7. Cooperation with git repository (individual = github, company = gitlab).
  8. Source template generation. I don't want to enter class comments or file headers.
  9. Dependency display in pom.xml. dependency: tree I don't want to enter it and want to see it in the GUI.

Visual Studio Code setup

It was added as an add-on. See the information below for setup. https://code.visualstudio.com/docs/languages/java

Java Extension Pack https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack image.png

The following packaging.

Language Support for Java(TM) by Red Hat https://marketplace.visualstudio.com/items?itemName=redhat.java

It contains code storage for programming and so on.

Debugger for Java https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-debug

This is a function for debugging in Java.

Java Test Runner https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-test

This is an extension that allows you to execute JUnit and check the results.

Maven for Java https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-maven

An extension for viewing Maven Explorer and performing various tasks.

Lombok Annotations Support for VS Code image.png

https://marketplace.visualstudio.com/items?itemName=GabrielBB.vscode-lombok

I will use Lombok, so I will put it in.

Checkstyle for Java image.png

https://marketplace.visualstudio.com/items?itemName=shengchen.vscode-checkstyle

Since CheckStyle is used for the coding standard, enter it.

Spring Boot Tools image.png

https://marketplace.visualstudio.com/items?itemName=Pivotal.vscode-spring-boot

It is a convenient extension related to Spring Boot setting storage and endpoints.

It didn't work

Endpoint display during Debug of Spring Boot Tools

The endpoint will be displayed. image.png But ... Even if you select an endpoint from there, an error will occur as shown below. image.png

Hmm. The browser should open, but ... I gave up the investigation because there was no error anywhere. https://github.com/spring-projects/sts4/blob/master/CONTRIBUTING.adoc I thought I'd ask a question on stack over flow, --There is no spring-tools-4 tag yet. --You can't create a new tag with the account you just created With that feeling ... https://stackoverflow.com/questions/52128210/vscode-not-work-quick-access-for-running-apps-with-spring-boot-tools This happened: disappointed_relieved: Whether or not the English is really understandable ...!

Let's try (expect) from now on

Java with Kubernetes in VS Code https://code.visualstudio.com/docs/java/java-kubernetes Oh? Can it work with Kubernetes? Well, honestly, I don't know the merit of running it with Kubernetes in a local environment, but it looks interesting!

VS Live Share/VS Live Share Audio

Functions learned from Yuru Web Study Group @ Sapporo # 1. Can this be used for technical support of contractors? I think it's amazing. It seems to be better than slack than QA tickets.

Recommended Posts

Try to quit Eclipse and switch to Visual Studio Code
Switch from Eclipse to VS Code
Farewell to Eclipse, Visual Studio Code for moderately lightweight JavaFX development-Environment construction-
Output settings to debug console in Visual Studio Code
Java in Visual Studio Code
How to set character code and line feed code in Eclipse
How to use PlantUML with Visual Studio Code (created on October 30, 2020)
Try remote debugging of Java with Remote Containers in Visual Studio Code Insiders
[Mac] Install Java in Visual Studio Code
Java to C and C to Java in Android Studio
Add spring boot and gradle to eclipse
Code that is difficult to debug and parse
Fastest installation of Visual Studio Code on Ubuntu
Add --enable-preview option in Java in Visual Studio Code
How to color code console output in Eclipse
Try to link Ruby and Java with Dapr
Java.home cannot be set in visual studio code.
[Raspberry Pi] Try to link Apache2 and Tomcat
[Mac] Install Java in Visual Studio Code (VS Code)