summaryrefslogtreecommitdiff
path: root/vscode
diff options
context:
space:
mode:
authorKamal Wickramanayake <kamal@inbox.lk>2026-02-14 19:35:29 +0530
committerKamal Wickramanayake <kamal@inbox.lk>2026-02-14 19:35:29 +0530
commit2acae77eaa61c6dd9db69a19fc71114369cfa232 (patch)
treed3d1c80b64b3435e63fff8f503444868a8442dbc /vscode
parent01edac7edf4154c77ffde449ebcb072c4995652e (diff)
Added VSCode helloworld sample application.
Diffstat (limited to 'vscode')
-rw-r--r--vscode/01-helloworld/.gitignore1
-rw-r--r--vscode/01-helloworld/.vscode/settings.json7
-rw-r--r--vscode/01-helloworld/README9
-rw-r--r--vscode/01-helloworld/README.md18
-rw-r--r--vscode/01-helloworld/src/App.java5
5 files changed, 40 insertions, 0 deletions
diff --git a/vscode/01-helloworld/.gitignore b/vscode/01-helloworld/.gitignore
new file mode 100644
index 0000000..6dd29b7
--- /dev/null
+++ b/vscode/01-helloworld/.gitignore
@@ -0,0 +1 @@
+bin/ \ No newline at end of file
diff --git a/vscode/01-helloworld/.vscode/settings.json b/vscode/01-helloworld/.vscode/settings.json
new file mode 100644
index 0000000..0ac215c
--- /dev/null
+++ b/vscode/01-helloworld/.vscode/settings.json
@@ -0,0 +1,7 @@
+{
+ "java.project.sourcePaths": ["src"],
+ "java.project.outputPath": "bin",
+ "java.project.referencedLibraries": [
+ "lib/**/*.jar"
+ ]
+}
diff --git a/vscode/01-helloworld/README b/vscode/01-helloworld/README
new file mode 100644
index 0000000..1e331ef
--- /dev/null
+++ b/vscode/01-helloworld/README
@@ -0,0 +1,9 @@
+How to create a Java project:
+
+1. Get the Command Pallete
+2. Start typing 'java' and select 'Java: Create New Project...'
+3. Select the option 'No build tools'
+4. Choose the parent directory where you want to create the Java project directory.
+5. Enter the name of your project.
+
+Check the organization of your project. \ No newline at end of file
diff --git a/vscode/01-helloworld/README.md b/vscode/01-helloworld/README.md
new file mode 100644
index 0000000..a43b9f6
--- /dev/null
+++ b/vscode/01-helloworld/README.md
@@ -0,0 +1,18 @@
+## Getting Started
+
+Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code.
+
+## Folder Structure
+
+The workspace contains two folders by default, where:
+
+- `src`: the folder to maintain sources
+- `lib`: the folder to maintain dependencies
+
+Meanwhile, the compiled output files will be generated in the `bin` folder by default.
+
+> If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there.
+
+## Dependency Management
+
+The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies).
diff --git a/vscode/01-helloworld/src/App.java b/vscode/01-helloworld/src/App.java
new file mode 100644
index 0000000..14c9abd
--- /dev/null
+++ b/vscode/01-helloworld/src/App.java
@@ -0,0 +1,5 @@
+public class App {
+ public static void main(String[] args) throws Exception {
+ System.out.println("Hello, World!");
+ }
+}