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
- Font is "Fira Code", ligature function is on, size 12
- Character code automatic detection function turned on
- Preview mode disabled
- By default, single-click to preview mode and double-click to normal mode.
- When opening in preview mode, if there is already a tab opened in preview mode, it behaves like opening in that tab.
- It seems to be convenient when you want to order various files. It's nice to cut things you don't like.
- The editor displays all whitespace and control characters.
- "Default High Contrast" is used for the workbench color theme and "Material Icon Theme" is used for the icon theme.
- "Default High Contrast": Literally, the high contrast theme that VS Code has by default. Emphasis on readability.
- However, the line numbers and spaces are slightly different in color. It was noisy as expected.
- "Material Icon Theme": Themes added by the extension of the same name (see below). In short, I didn't like the icon, so I replaced it.
- The integrated terminal uses Git Bash. I think it was cmd at the beginning.
Extensions
- Japanese Word Handler
The word-by-word jump with Ctrl + cross key works in Japanese as well.
It's true that you don't have to worry about it, but if you can't use it, it's stressful.
- Code Outline
A companion to the fucking code front. If not, hage.
The functions are almost the same as the outline functions of various IDEs, and there is no big difference in usage.
- Java Extension Pack
A pack for annoying people that collects essential items for Java. The following four are put together. that's all.
If you put it in for the time being, you can do something like Java. Microsoft official.
- Language Support for Java
Language server and service body. It seems to be an Eclipse guy. It's heavy in terms of operation and RAM, and sometimes it's skipped, but it's generally useful.
Maybe the tokenizer is stupid, and sometimes it reports a compile error that doesn't make sense ... but it can be fixed by opening the corresponding file. Made by Red Hat. Please include the JDK.
- Debugger for Java
It seems that variables cannot be rewritten or instruction pointers cannot be changed. Log points (VSCode function, you can insert logs with breakpoints) were also not supported.
Well, at least you can check breakpoints and variable values, and remote debugging is also supported. Necessary and sufficient. Made by Microsoft.
- Java Test Runner
A test execution / debug execution button (or a link) is placed near the test class and test method.
If you think it's like Quick JUnit in the Eclipse direction, it's usually correct, but it can't be executed well and it's skipped, so let's hit the command in that case. Made by Microsoft.
- Maven Project Explorer
It seems that it will memorize commands and generate archetypes. Made by Microsoft.
...... Hearsay is because I don't use it. The display is turned off because it is fine on the command line.
- Tomcat for Java
Tom cat runner. If you unzip Tomcat in a suitable place and instruct "Use this", it will work. It moves easily at the beatless level.
At least in the Windows environment, the settings (in AppData) are squeezed into the extension directory, so it is safe to use without polluting the Tomcat installation directory.
- ESLint
If you use JS, you can put it in. VS Code is plain and has node support, so I feel like I can do something without it.
Of course, it will be updated sequentially. It's very convenient because you don't have to do it by hand.
- Japanese Language Pack for Visual Studio Code
Microsoft official language pack for VS Code. …… Why is the evaluation value unusually low?
Of course, the extension will not be translated, so if you want a sense of unity, it may be better to use it in English without including it.
- Material Icon Theme
Recommended if you don't like the default icon.
[^ 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.