Switch from Eclipse to VS Code

Introduction

Until now, when I was studying at home, I used to build a Java development environment in Eclipse, but now I want to use the popular VS Code. I've used it at work, but I wanted to change the environment at home, so I tried it.

Install Git

Excuse me, super rudimentary. I didn't put Git in the local development environment using GitHub. Install from here. SnapCrab_Git - Google Chrome_2019-1-19_22-4-10_No-00.png This is Download for x.xx for Windows.

SnapCrab_Git 2201 Setup_2019-1-19_22-9-50_No-00.png

Continue to the next. SnapCrab_Git 2201 Setup_2019-1-19_22-12-39_No-00.png I chose VS Code here. SnapCrab_Git 2201 Setup_2019-1-19_22-14-9_No-00.png This is the default. SnapCrab_Git 2201 Setup_2019-1-19_22-15-41_No-00.png It was off here. SnapCrab_Git 2201 Setup_2019-1-19_22-16-37_No-00.png

SnapCrab_Git 2201 Setup_2019-1-19_22-25-46_No-00.png OK.

First, install VS Code

Download from here. Note: Windows 64bit version. I will omit the details.

Link setting from VS Code to GitHub

You can open the folder path used in Eclipse (GitHub linkage set up) with VS Code. SnapCrab_ApiSpeciesDumperjava - git - Visual Studio Code_2019-1-19_22-32-3_No-00.png Hmm, I'm telling you to put in a Java Extension Pack, so I'll put it in. SnapCrab_[Preview] v050md - git - Visual Studio Code_2019-1-19_22-34-57_No-00.png Now put in the JDK. Follow. SnapCrab_● settingsjson - git - Visual Studio Code_2019-1-19_22-56-53_No-00.png Java.home settings are also OK. I'm not particularly bad at English, but I will translate it into Japanese. .. SnapCrab_Extension Japanese Language Pack for Visual Studio Code - git - Visual Studio Code_2019-1-19_23-0-11_No-00.png Since there is also the Java setting earlier, reboot once here. SnapCrab_ApiSpeciesDumperjava - git - Visual Studio Code_2019-1-19_23-22-32_No-00.png OK.

When you open the source control view, SnapCrab_ApiSpeciesDumperjava - git - Visual Studio Code_2019-1-19_23-23-18_No-00.png It was supposed to be amazing. SnapCrab_NoName_2019-1-19_23-34-48_No-00.png

When I try to update, I have to log in. SnapCrab_settingsjson - git - Visual Studio Code_2019-1-19_23-45-2_No-00.png I was able to log in. Or rather, I added it because the escape was missing in the path specification of java.home. Include the class files in gitignore and try modifying the source. SnapCrab_sqlIdMatcherjava (Working Tree) - git - Visual Studio Code_2019-1-19_23-50-12_No-00.png

Staging ... SnapCrab_sqlIdMatcherjava (Working Tree) - git - Visual Studio Code_2019-1-19_23-51-16_No-00.png Commit with a comment (quick and uncapped) SnapCrab_sqlIdMatcherjava (Index) - git - Visual Studio Code_2019-1-19_23-54-35_No-00.png Sync changes! !! SnapCrab_sqlIdMatcherjava (Index) - git - Visual Studio Code_2019-1-19_23-55-25_No-00.png

SnapCrab_rptrryoprivateTiger a trial product - Google Chrome_2019-1-19_23-56-59_No-00.png It was reflected properly.

at the end

I haven't tried debugging execution yet, so I will write it again. It's a lot of fun to hit something you don't know and solve it.

I hope it helps someone.

Recommended Posts

Switch from Eclipse to VS Code
Switch from slim3-gen to slim3-gen-jsr269
Try to quit Eclipse and switch to Visual Studio Code
VS Code FAQ for those who want to escape Eclipse
How to open a script file from Ubuntu with VS code
I tried migrating Processing to VS Code
How to call Swift 5.3 code from Objective-C
From installing Eclipse to executing Java (PHP)
[Java] Flow from source code to execution
Code Java from Emacs with Eclim
Switch from Eclipse to VS Code
Sample code using Minio from Java
Migration from Eclipse to IntelliJ (on the way)
How to color code console output in Eclipse
Migrating from Eclipse server function (Tomcat) to Embed Tomcat
[Java] How to switch from open jdk to oracle jdk
From creating a Spring Boot project to running an application with VS Code
Build VS Code + WSL + Java + Gradle environment from scratch
Changes from Java 8 to Java 11
Sum from Java_1 to 100
How to switch Tomcat context.xml with WTP in Eclipse
How to jump from Eclipse Java to a SQL file
Migrate from JUnit 4 to JUnit 5
Swipe to switch screens
To debug in eclipse
How to display a browser preview in VS Code
From Java to Ruby !!
[Eclipse] Summary of environment settings * Updated from time to time
How to build Java development environment with VS Code
How to read a library from a JAR file with VS Code << How to not use Maven / Gradle >>
How to set character code and line feed code in Eclipse
A memo to start Java programming with VS Code (2020-04 version)
[Integration test code] How to select an element from date_select
How to apply C code format from the command line
Moved from iBATIS to MyBatis3
Migration from Cobol to JAVA
Run VS Code on Docker
How to write good code
Docker management with VS Code
Moving from AWS to PaizaCloud
New features from Java7 to Java8
Migrating from vargrant to docker
Format Ruby with VS Code
Hello World with VS Code!
Connect from Java to PostgreSQL
Convert from ○ months to ○ years ○ months
How to use Eclipse Debug_Shell
Rewriting from applet to application
Connect to oracle with eclipse!
Change from SQLite3 to PostgreSQL
From Ineffective Java to Effective Java
How to migrate from JUnit4 to JUnit5
Open VS Code Remote Containers directly from the CLI on Mac
Settings to delete unused Java imports when saving with VS Code
If you want to change the Java development environment from Eclipse
Shortcut comparison for those migrating from Eclipse to IntelliJ IDEA (Windows)
How to resolve VS Code "Build failed, do you want to continue?"