Skip to content

Commit 8cd987f

Browse files
committed
fixed typos and removed extra spaces
Signed-off-by: Aurelio Garcia-Ribeyro <aurelio.garciaribeyro@oracle.com>
1 parent 12b87a3 commit 8cd987f

File tree

1 file changed

+57
-55
lines changed

1 file changed

+57
-55
lines changed

README.md

Lines changed: 57 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
<!--
2-
Copyright (c) 2023-2025, Oracle and/or its affiliates.
2+
3+
Copyright (c) 2023-2025, Oracle and/or its affiliates.
34
45
Licensed to the Apache Software Foundation (ASF) under one
5-
or more contributor license agreements. See the NOTICE file
6+
or more contributor license agreements. See the NOTICE file
67
distributed with this work for additional information
7-
regarding copyright ownership. The ASF licenses this file
8+
regarding copyright ownership. The ASF licenses this file
89
to you under the Apache License, Version 2.0 (the
910
"License"); you may not use this file except in compliance
10-
with the License. You may obtain a copy of the License at
11-
12-
http://www.apache.org/licenses/LICENSE-2.0
13-
11+
with the License. You may obtain a copy of the License at
12+
13+
http://www.apache.org/licenses/LICENSE-2.0
14+
1415
Unless required by applicable law or agreed to in writing,
1516
software distributed under the License is distributed on an
1617
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17-
KIND, either express or implied. See the License for the
18+
KIND, either express or implied. See the License for the
1819
specific language governing permissions and limitations
1920
under the License.
2021
@@ -28,12 +29,12 @@
2829
[![Build Status](https://img.shields.io/github/actions/workflow/status/oracle/javavscode/main.yml?branch=main&style=for-the-badge&logo=github)](https://github.com/oracle/javavscode/actions?query=workflow:Java%20Platform%20Support%20for%20Visual%20Studio%20Code)
2930
[![License](https://img.shields.io/github/license/oracle/javavscode?style=for-the-badge&logo=apache)](https://github.com/oracle/javavscode/blob/main/LICENSE.txt)
3031

31-
Java Platform extension from Oracle brings full featured development support (edit-compile-debug & test cycle) to VS Code. It also offers support for Maven and Gradle projects. Applications using JDK 8 and above are supported.
32+
Java Platform extension from Oracle brings full-featured development support (edit-compile-debug & test cycle) to VS Code. It also offers support for Maven and Gradle projects. Applications using JDK 8 and above are supported.
3233

3334

3435
## Getting Started
3536
1. VS Code Tips
36-
- To install and update extensions refer to [extensions](https://code.visualstudio.com/docs/getstarted/extensions).
37+
- To install and update extensions, refer to [Use extensions in Visual Studio Code](https://code.visualstudio.com/docs/getstarted/extensions).
3738
- Search for a command by opening the [command palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette) and typing the keywords.
3839
- Keyboard Shortcut:
3940
- Windows/Linux: `Ctrl+Shift+P`
@@ -46,7 +47,7 @@ Java Platform extension from Oracle brings full featured development support (ed
4647
- The extension requires JDK 17 or newer to run.
4748
- Optionally, set a different JDK to compile and run projects in the `Open Settings | Jdk › Project: Jdkhome` setting.
4849
- By default, the __jdk.jdkhome__ setting is used.
49-
- Projects can run on JDK 8 and above.
50+
- Projects can run on JDK 8 and above.
5051
- For more information, see the section [Selecting the JDK](#selecting-the-jdk).
5152
3. Use any one of the following ways to start coding, compiling and debugging in Java.
5253
- Simply create a new Java class with `main` method.
@@ -55,67 +56,67 @@ Java Platform extension from Oracle brings full featured development support (ed
5556
- Open the folder with existing __Maven__ or __Gradle__ project files (_pom.xml_ or _build.gradle, gradle.properties_).
5657

5758
## Supported Actions
58-
In the VS Code command palette :
59+
In the VS Code command palette:
5960
* __Java: New Project...__ allows creation of new Maven or Gradle project
60-
* __Java: New File from Template...__ add various files to currently selected open project. Files are:
61+
* __Java: New File from Template...__ adds various files to the currently selected open project. Files are:
6162
* Java - broad selection of various predefined Java classes
6263
* Unit tests - JUnit and TestNG templates for test suites and test cases
6364
* Other - various templates for Javascript, JSON, YAML, properties, ... files
64-
* __Java: Create New Notebook...__ command to create a new [Java notebook](#interactive-java-notebooks)(`.ijnb` file)
65-
* __Java: Open JShell...__ command to open [JShell](#jshell) .
65+
* __Java: Create New Notebook...__ command to create a new [Java notebook](#interactive-java-notebooks) (`.ijnb` file)
66+
* __Java: Open JShell...__ command to open [JShell](#jshell).
6667
* __Java: Compile Workspace__ - invoke Maven or Gradle build
67-
* __Java: Clean Workspace__ - clean Maven or Gradle build
68+
* __Java: Clean Workspace__ - clean Maven or Gradle buildc
6869
* __Download, install and Use JDK__ - allows download and installation of JDK binaries
6970
* Debugger __Java+...__ - start main class or test on selected JDK. More in [Debugger section](#debugger-and-launch-configurations)
7071
* __Test Explorer__ for Java tests results visualization and execution including editor code Lenses.
7172
* Maven and Gradle support including multi-project projects, subprojects opening and Gradle priming builds.
7273
* __Java: Go To Test/Tested Class__ - Navigates to the corresponding test or source class file
7374

7475
## Project Explorer
75-
Project Explorer provides an overview of logical project structure, groups sources together and greatly simplifies Java package structure exploration. Project Explorer is an addition to the classical workspace explorer. Use it to build, test, execute and operate your Maven and Gradle Java projects.
76+
Project Explorer provides an overview of logical project structure, groups sources together and greatly simplifies Java package structure exploration. Project Explorer is an addition to the classical workspace explorer. Use it to build, test, execute and operate your Maven and Gradle Java projects.
7677
![Project Explorer](vscode/images/project-explorer.png)
7778

7879
## Interactive Java Notebooks
7980
### Introduction
80-
* Experience interactive coding with Java notebooks.
81-
Use the __Java: Create New Notebook...__ command to create a new Java notebook(`.ijnb` file)
82-
![Java Notebook](vscode/images/java_notebook.gif)
83-
* Add code snippets with `+ Code` button and document with markdown cells with `+ Markdown`.
84-
* Double click on a cell to edit and hit `Esc` when done.
81+
* Experience interactive coding with Java notebooks. Use the __Java: Create New Notebook...__ command to create a new Java notebook (`.ijnb` file)
82+
![Java Notebook](vscode/images/java_notebook.gif)
83+
* Add code snippets with `+ Code` button and document with markdown cells using the `+ Markdown` button.
84+
* Double-click on a cell to edit and press `Esc` when done.
8585
* Jupyter-style notebooks let you combine Java code snippets with markdown-formatted text cells.
8686
* Run individual code cells or execute the entire notebook.
87-
* Can save outputs alongside code cells.
88-
* Sharing notebooks
89-
* Share as `.ijnb` files for use with Oracle Java extension.
90-
* Rename with `.ipynb` for viewing in other IDEs Jupyter etc.
91-
* Download the [sample notebooks](https://github.com/oracle/javavscode/blob/main/samples/notebooks) and open in VSCode to get started.
87+
* Save outputs alongside code cells.
88+
* **Sharing notebooks:**
89+
* Share as `.ijnb` files for use with the Oracle Java extension.
90+
* Rename with a `.ipynb` extension for viewing in other IDEs, such as Jupyter.
91+
* Download the [sample notebooks](https://github.com/oracle/javavscode/blob/main/samples/notebooks) and open them in VSCode to get started.
9292

9393
### Java Notebooks for Java Projects
9494
* Document Java projects with interactive Java notebooks.
95-
* Open/Create a Java notebook in your workspace folder loaded with classes from your project.
95+
* Open or create a Java notebook in your workspace folder loaded with classes from your project.
9696
![Java Notebook For Project](vscode/images/project_notebook.gif)
97-
* Use `Project Context` options incase you want to change to a different project context .
97+
* Use the `Project Context` options to switch to a different project context.
9898
![Switch Project Context](vscode/images/project_context.png)
9999
* Provide code snippets, markdown explanations, and expected outputs.
100100

101101
### Notebook Configurations
102-
* Following configuration settings are available
103-
* `jdk.notebook.classpath`
104-
* `jdk.notebook.modulepath`
105-
* `jdk.notebook.addmodules`
106-
* `jdk.notebook.enablepreview`
107-
* `jdk.notebook.implicitimports`
108-
* Note : These settings *override* any settings inferred from project context 
102+
The following configuration settings are available:
103+
* `jdk.notebook.classpath`
104+
* `jdk.notebook.modulepath`
105+
* `jdk.notebook.addmodules`
106+
* `jdk.notebook.enablepreview`
107+
* `jdk.notebook.implicitimports`
108+
109+
These settings *override* settings inferred from project context 
109110

110111
## JShell
111-
* Use the __Java: Open JShell...__ command to open JShell .
112+
* Use the __Java: Open JShell...__ command to open JShell.
112113
* Project classes from currently open project are automatically loaded.
113114
![JShell](vscode/images/jshell.gif)
114115

115116
## Debugger and Launch Configurations
116117
Language Server __Java+ ...__ launch configuration supports debugging and running Java applications using JDK11 or newer.
117118
1. The launch configuration (debugger) is invoked when `Run main | Debug main` codelens is selected in the code.
118-
2. Or __Java+...__ is selected in __Run and Debug__ activity panel.
119+
2. Or __Java+...__ is selected in __Run and Debug__ activity panel.
119120
![Debug configurations](vscode/images/debuggers.png)
120121
### Launch Configurations
121122
* __Launch Java App__ - Debug or Run current Java project
@@ -127,14 +128,15 @@ Language Server __Java+ ...__ launch configuration supports debugging and runnin
127128
Default launch configurations provided by Language Server can modified in `launch.json` file.
128129

129130
### Run Configurations panel
130-
Program arguments, VM options, environment variables,... can be set in Run Configuration panel a part of Explorer. The panel is sufficient for all typical use-cases Java programmer faces. Only advanced, expert scenarios may require touching of `launch.json` (which still takes precedence).
131+
Program arguments, VM options, environment variables, etc., can be set in the Run Configuration panel as part of Explorer. The panel is sufficient for all typical use-cases Java programmer faces. Only advanced, expert scenarios may require touching of `launch.json` (which still takes precedence).
131132
![Run Configuration](vscode/images/run_config.png)
132133

133134
## JDK Downloader
134135
If the system does not detect any JDK, the extension will offer a downloader and setup prompt to help you set up a JDK. This setup provides options for Oracle JDK, OpenJDK, and allows you to choose from any installed JDK on your system.
135136
Alternatively, you can manually specify the path to JDK binaries by utilizing the JDK downloader.
136-
You can also access the JDK downloader through the "Download, install, and Use JDK" option in the command palette.
137-
![JDK Downloader](vscode/images/jdk_downloader.png)
137+
You can also access the JDK downloader through the "Download, install, and Use JDK" option in the command palette.
138+
![JDK Downloader](jdk_downloader.png)
139+
138140
## Enabling Java Preview Features
139141
When using preview features use the quick fix action option to easily enable them.
140142

@@ -155,16 +157,16 @@ Class level refactorings as well as variable refactorings are supported in VSCod
155157
### Surround with refactorings
156158
![Surrond with Refactorings](vscode/images/Surrond_With_refactorings.png)
157159

158-
Some refactorings are two steps with like __Generate Override method__ ... where method to be overriden is selected in 2nd step:
160+
Some refactorings are two steps with like __Generate Override method__ ... where method to be overriden is selected in 2nd step:
159161

160162
![Override refactoring](vscode/images/Override_refactoring.png)
161163

162164
### Change Method Parameters refactoring
163-
Change method parameters refactoring is provided using dedicated form allowing to change, add, move, remove method parameters.
165+
Change method parameters refactoring is provided using dedicated form allowing to change, add, move, remove method parameters.
164166
![Change method parameters refactoring](vscode/images/change_method_params.png)
165167

166168
### Move Members Refactoring
167-
Move members refactoring provides dedicated form as well.
169+
Move members refactoring provides dedicated form as well.
168170
![Move members refactoring](vscode/images/move_refactoring.png)
169171

170172
### Some of supported refactorings:
@@ -186,37 +188,37 @@ Move members refactoring provides dedicated form as well.
186188
* Constructor and method argument refactoring
187189

188190
## Formatter Preferences
189-
Easily update default formatter preferences by adjusting a simple configuration option to tailor settings according to specific needs.
191+
Easily update default formatter preferences by adjusting a simple configuration option to tailor settings according to specific needs.
190192

191-
Go to VSCode `Open Settings | Extensions | Java` and set `Jdk › Format: Settings Path:` option to the formatter preferences file.
193+
Go to VSCode `Open Settings | Extensions | Java` and set `Jdk › Format: Settings Path:` option to the formatter preferences file.
192194

193195
Please refer to [Java formatting preferences](https://github.com/oracle/javavscode/wiki/Java-formatting-preferences) wiki for more info.
194196

195197
## Hints Preferences
196198
Easily update default hint preferences by adjusting a simple configuration option to tailor hint preferences to specific needs.
197199

198-
Go to VSCode `Open Settings | Extensions | Java` and set `Jdk › Hints: Preferences:` option to the xml hint preferences file.
200+
Go to VSCode `Open Settings | Extensions | Java` and set `Jdk › Hints: Preferences:` option to the xml hint preferences file.
199201

200202
## Organize Imports
201203
Out of the box support for organizing imports in Java sources is available. It removes unused imports, groups imports by packages and updates your imports whenever a file is saved. In addition to the defaults, there is a rich set of configuration options.
202204

203-
Go to VSCode `Open Settings | Extensions | Java` and search for _Jdk_ to set `Jdk > Java > Imports:` options:
205+
Go to VSCode `Open Settings | Extensions | Java` and search for _Jdk_ to set `Jdk > Java > Imports:` options:
204206
* `Count For Using Star Import` - Class count to use a star-import, 999 is the default value
205207
* `Count For Using Static Star Import` - Members count to use a static star-import, 999 is the default value
206208
* `Groups` - Groups of import statements (specified by their package prefixes) and their sorting order. Import statements within a group are ordered alphabetically
207209

208210
And `Open Settings | Extensions > Java > On Save: Organize Imports` - Enable organize imports action on a document save
209211

210212
## JavaDoc smart editing
211-
When adding JavaDoc to code Oracle Java Platform extension assists by suggesting to insert preformatted and prepopulated JavaDoc comment. Type `/**` above method signature and IDE offers to complete the JavaDoc. The action creates JavaDoc comment with all arguments prepared.
213+
When adding JavaDoc to code Oracle Java Platform extension assists by suggesting to insert preformatted and prepopulated JavaDoc comment. Type `/**` above method signature and IDE offers to complete the JavaDoc. The action creates JavaDoc comment with all arguments prepared.
212214
![JavaDoc Completion](vscode/images/javadoc.png)
213215

214216
## Test Explorer
215-
Oracle Java Platform extension provides Test Explorer view which allows to run all tests in a project, examine the results, go to source code and run particular test.
217+
Oracle Java Platform extension provides Test Explorer view which allows to run all tests in a project, examine the results, go to source code and run particular test.
216218
![Test Explorer](vscode/images/Test_explorer.png)
217219

218220
### Localization support
219-
Oracle Java Platform extension provides localization support for _Japanese_ and _Simplified Chinese_.
221+
Oracle Java Platform extension provides localization support for _Japanese_ and _Simplified Chinese_.
220222
To switch language `Go to command Palette->Configure display language` select `ja` for _Japanese_ or `zh-cn` for _Simplified Chinese_
221223

222224

@@ -236,19 +238,19 @@ As soon as one of the settings is changed, the Language Server is restarted.
236238
This setup makes it easier to experiment with early access JDK builds. Follow these steps to enable the use of an early access JDK:
237239
Step-1: Navigate to `Open Settings | Jdk > Advanced > Disable: Nbjavac` and enable the checkbox.
238240

239-
Step-2: Set the JDK in `Open Settings | Jdk: Jdkhome` to point to the early access JDK path.
241+
Step-2: Set the JDK in `Open Settings | Jdk: Jdkhome` to point to the early access JDK path.
240242

241243
## Troubleshooting
242244
If your extension is not starting and throwing some error like no JDK found even if you have a working JDK installed in your machine, then you can try deleting cache for the workspace using `View | Command Palette | Delete oracle java extension cache for this workspace`.
243245

244246
## Workspace
245247
The extension will analyze the content of the opened workspace, and relevant other files. If the workspace contains a lot of data, this may take a long time. It is therefore recommended to avoid adding unnecessarily big folders in a workspace. Specifically, it is not recommended to open user's home directory as a part of the workspace.
246248

247-
## Known Issue
249+
## Known Issues
248250
1. If an action has been applied to the Maven `pom.xml` file through the extension, such as enabling a preview feature or adding a test runner framework, subsequent compile or run operations may fail. To resolve this issue, please follow the steps below:
249251
1. Check the `pom.xml` file for any duplicated tags.
250252
2. If duplicated tags are found, remove the extra tags and attempt to compile again.
251-
3. Add the `--enable-preview` VM argument to the *exec-maven-plugin* or *maven-surefile-plugin* configurations if they are used execution or test runs.
253+
3. Add the `--enable-preview` VM argument to the *exec-maven-plugin* or *maven-surefile-plugin* configurations if they are used for execution or test runs.
252254
2. The *Project: Test Project* command executes the project's tests but does not update the Testing or the Tests Results panels. The test output is present only in the Terminal or Debug Console panel.
253255

254256
## Telemetry
@@ -277,5 +279,5 @@ Please consult the [security guide](https://github.com/oracle/javavscode/blob/ma
277279

278280
Copyright (c) 2023-2025 Oracle and/or its affiliates.
279281

280-
Oracle Java Platform Extension for Visual Studio Code is licensed under [Apache 2.0 License](https://github.com/oracle/javavscode/blob/main/LICENSE.txt).
282+
Oracle Java Platform Extension for Visual Studio Code is licensed under [Apache 2.0 License](https://github.com/oracle/javavscode/blob/main/LICENSE.txt).
281283
The [THIRD_PARTY_LICENSES](./THIRD_PARTY_LICENSES.txt) file contains third party notices and licenses.

0 commit comments

Comments
 (0)