formulahendry / formulahendry/vscode-code-runner

Java code runner run all type of file

Open
#1,082 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

javac -d . file_name_with_the_extension
java directory_of_the_class_file.the_class_file_name_without_the_extension

cd /home/ciprian/Documents/Aici\ Fac\ Cod/Java/Salut && javac -d . Salutare.java && java Java.Salut.Salutare

"java": "cd /home/ciprian/Documents/Aici\\ Fac\\ Cod/Java/Salut && javac -d . Salutare.java && gnome-terminal -- bash -c 'java Java.Salut.Salutare; read -p \"Press Enter to exit\"'"

/home/ciprian/Documents/Aici Fac Cod/Java/Salut
|-- Salutare.java
|-- Java
|-- Salut
|-- Salutare.class

javac -d . Salutare.java
java Java.Salut.Salutare

All i want is a command for java in code runner to runn all type of java prohect like "cpp":"g++ $fullFileName -o $fileNameWithoutExt && gnome-terminal --zoom=2 -- bash -c 'cd $dir && ./$fileNameWithoutExt; read -p \"\"'",(this is for C++ but ideea is i can run C++ whell)

i also made a setting with chat gpt: "java": "cd $dir && javac $fileName && gnome-terminal --zoom=2 -- bash -c 'java
$fileName; read -p \"Press Enter to exit\"'", for java with packages and i have a command with java withouut packages "java": "cd $dir && javac $fileName && gnome-terminal --zoom=2 -- bash -c 'java $(basename $fileName
.java); read -p \"Press Enter to exit\"'",

All i want is a command to run all type of java packages with code runner. I also want a solution to disable code run button for css
file

Thx very mutch and wish great luck

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.