You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Newly created java project not detected as java project.
Create a new java project.
Steps:
press ctrl + shift + p
Type "java: create"
Selected, create a new java project.
Once project is created, notice IDE has not detected it is a java project.
open the main java file, now IDE detects it is a java project.
Issue with this, before opening any java file, if I right-click in explorer on "src" folder to create a new java file, IDE creates a blank file. It should create a file with skeleton code of a Class.
Environment
Operating System: Linux
JDK version: openjdk version "18.0.1" 2022-04-19
Visual Studio Code version: 1.69.0-insider
Java extension version: 1.8.0
The text was updated successfully, but these errors were encountered:
The same happens if you cd in the root of the java project and then open vscode from the terminal.
vscode opens and doesn't know project is java.
note make sure no files are opened in edit window, if so close all open files, close vscode and redo steps.
This is by design so far. For project which has build tools (pom.xml, build.gradle, etc...), the project will be imported automatically as long as those files are located at the root of the workspace folder.
For project which do not have a build tool (your case), the Java extension won't be activated until a Java file is opened. - to avoid being activated unintentionally.
Newly created java project not detected as java project.
Create a new java project.
Steps:
press ctrl + shift + p
Type "java: create"
Selected, create a new java project.
Once project is created, notice IDE has not detected it is a java project.
open the main java file, now IDE detects it is a java project.
Issue with this, before opening any java file, if I right-click in explorer on "src" folder to create a new java file, IDE creates a blank file. It should create a file with skeleton code of a Class.
Environment
The text was updated successfully, but these errors were encountered: