[JAVA] VS Code FAQ for those who want to escape Eclipse

A summary of things that have never been asked.

Q. It's not the whole team ...

A. ** No problem **. For the time being, it can be read if it is assembled with maven or gradle, and although I have not tried it exactly, it seems that it can also be done with an Eclipse project. As a matter of fact, I think it's only me that the team uses VS Code in the field ... It's more popular.

Q. Is the function okay?

A. It's inferior to a full-featured IDE, but ** it has most of the features you need **. ~~ Rather, it feels more versatile than Eclipse ~~ Extensions are being actively developed, so it's not uncommon for them to be already made when you look for them.

Q. Is it really light?

A. It's a story in my field environment [^ 1], but ** it's not dramatically lighter **. In fact, the Java language server for VS Code is Eclipse's in the first place. But ** definitely light **. RAM consumption has been reduced by about 0.8GB (just as I saw it in Task Manager). Even if you are consuming a lot of RAM while working, the language server is about 1.2GB and the main body is about 0.5GB, so it is quite easy. Well, the lightest thing is, above all (because it's stable as an editor), it may be my heart that I don't have to worry about the data I'm working on suddenly blown away.

Q. Isn't it difficult?

A. ** No **. I affirm. Since it is an MS product in the first place, you can use shortcut keys that are close to each other if you get used to Office **. ** You can customize it as you like, so please like it **. Also, kindly, the "interactive playground" will give you a tutorial like a smartphone game ** [^ 2].

Q. Isn't it annoying?

A. ** It's more annoying than dropping the pre-configured Eclipse binaries **. But ** no big deal **. If you install the JDK in advance, and if you add the extension function, it will work at the level of "Oh, this is okay ...?".

Q. I installed it for the time being! …… So what should I do?

A. On the far left, there should be five vertical icons. ** The obscure puzzle-like icon (?) At the bottom gives you access to the extension marketplace **. From there, add the extensions you need. After that, you can use it and customize the parts you don't like. Roughly speaking, if you install the JDK and install the Java Extension Pack, you can at least Java **.

Q. Okay! Where do you set it up! ??

A. Find it from Ctrl +. Or the File menu. It feels like writing settings in JSON, but recently something like a normal setting screen (although it is still in the preview stage) has come to be included.

Q. I want to open what I was working on in Eclipse for the time being! What should I do! ??

A. Is there a button that says "Open Folder"? (Although you can also use the "File" menu separately) First of all, if you specify the project root of the folder where the sources you have been working on are located, it will open like that. If you want to keep two or more open at once, you can click "Add Folder to Workspace". The Eclipse workspace was a "workplace", but the VS Code workspace is an instruction that says "Read the source code here like this", so if you plan to reuse it, "Save the workspace as a name". Don't forget. However, even if you forget it, it will do something about it ...

Supplement: Custom example

Below is the configuration information I'm actually using. I'm a Java-like person, but I've come to the conclusion that ** I think this is all right **.

Setting

{
    "editor.fontFamily": "Fira Code",
    "editor.fontLigatures": true,
    "editor.fontSize": 12,
    "files.autoGuessEncoding": true,
    "workbench.editor.enablePreview": false,
    "workbench.iconTheme": "material-icon-theme",
    "editor.renderWhitespace": "all",
    "editor.renderControlCharacters": true,
    "workbench.colorTheme": "Default High Contrast",
    "workbench.colorCustomizations": {
        "editorLineNumber.foreground": "#888",
        "editorWhitespace.foreground": "#888"
    },
    "terminal.integrated.shell.windows": "C:\\Users\\[[REDACTED]]\\AppData\\Local\\Programs\\Git\\bin\\bash.exe",
}

...... In other words

Extensions

[^ 1]: Load a lot of projects at the same time and do your best with 8GB of RAM, such as setting up a VM, opening a full browser, and chatting. Of course it is Windows. There is no mercy. [^ 2]: It was in English. It's not difficult, so please read that much.

Recommended Posts

VS Code FAQ for those who want to escape Eclipse
Switch from Eclipse to VS Code
[For those who create portfolios] How to use font-awesome-rails
For those who want to use MySQL for the database in the environment construction of Rails6 ~.
Create an Android app for those who don't want to play music on the speaker
[For those who create portfolios] How to use chart kick
[For those who create portfolios] How to omit character strings
Introducing gem (Kaminari) recommended for those who want to organize images lined up in a row
[For those who create portfolios] Reduce mistakes and make the code easier to read -Rubocop Airbnb-
Shortcut comparison for those migrating from Eclipse to IntelliJ IDEA (Windows)
How to resolve VS Code "Build failed, do you want to continue?"
[For those who create portfolios] How to use binding.pry with Docker
Farewell to Eclipse, Visual Studio Code for moderately lightweight JavaFX development-Environment construction-
I tried migrating Processing to VS Code
I want to use DBViewer with Eclipse 2018-12! !!
Enable code completion in Eclipse for Mac
[For beginners] How to debug in Eclipse