Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Create a Java Project for Visual Studio Code

I have just transitioned into Visual Studio Code from Eclipse for Java. I want to create a simple HelloWorld folder which has src and bin folders. However, I do not know how to create the .classpath, .project, and .settings the same way Eclipse does it. How do I do this?

like image 449
Abhinav Rana Avatar asked May 12 '18 05:05

Abhinav Rana


2 Answers

Hit Ctrl+Shift+P to show all commands, then type "Java" and select "Java: Create Java Project"

like image 109
Ethan Gumabay Avatar answered Oct 16 '22 10:10

Ethan Gumabay


Visual Studio Code doesn´t have this orientation of creating a project because it´s file oriented. It´s on of the diferences with Visual Studio.

It means that creating a project structure is based on folders and files, and no file references and links the folders and files to a project. If you want to create a project with src and bin folders, you´ve to do it manually.

like image 35
Roberto Gimenez Avatar answered Oct 16 '22 12:10

Roberto Gimenez