Skip to content

Commit

Permalink
Remove the Formatter extension dependency. Add Install option on wa…
Browse files Browse the repository at this point in the history
…lkthrough
  • Loading branch information
alefragnani committed Mar 25, 2022
1 parent 8303191 commit 3a59232
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
* Adds **Virtual Workspaces** support
* Adds **Workspace Trust** support
* Adds **Multi-root** support
* The **Formatter** was extracted to its own extension ([Pascal Formatter](https://github.com/alefragnani/vscode-pascal-formatter))

## Support

Expand Down Expand Up @@ -40,7 +39,6 @@ Here are some of the features that **Pascal** provides:

* **Syntax highlighting** for files, forms and projects
* A huge set of **Snippets**
* Support for different **Code Formatters** (via [Pascal Formatter](https://github.com/alefragnani/vscode-pascal-formatter))
* Source code **navigation**

# Features
Expand Down Expand Up @@ -105,10 +103,6 @@ Navigate to any language element (methods, attributes, classes, interfaces, and
# Available commands

## Code Formatter

Check out [Pascal Formatter](https://github.com/alefragnani/vscode-pascal-formatter#available-commands) documentation.

## Code Navigation

To enable **Code Navigation**, the extension depends on **GNU Global and Exuberant Tags** and for that, you must run `gtags` on the Root folder, so the tags are created. In order to make life easier, two commands where added:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
{
"id": "formatter",
"title": "Formatter",
"description": "The extension uses the [Pascal Formatter](command:_pascal.installPascalFormatter) extension, which is automatically installed",
"description": "Standardise your Pascal code\n[Install Pascal Formatter](command:_pascal.installPascalFormatter)",
"media": {
"markdown": "walkthrough/formatter.md"
},
Expand Down
17 changes: 16 additions & 1 deletion walkthrough/formatter.md
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
![Formatter](./vscode-pascal-format-code.gif)
## Pascal Formatter Extension

![Pascal Formatter](./vscode-pascal-format-code.gif)

Use the [Pascal Formatter](command:_pascal.installPascalFormatter) extension to format your code.

You an choose choose between **Jedi Code Format**, **FreePascal PToP** or **Embarcadero Formatter**


<table align="center" width="85%" border="0">
<tr>
<td align="center">
<a title="Install Pascal Formatter" href="command:_pascal.installPascalFormatter">Install Pascal Formatter</a>
</td>
</tr>
</table>

0 comments on commit 3a59232

Please sign in to comment.