Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julien-r44/adonis-vscode-extension
💻 VSCode Extension for AdonisJS
https://github.com/julien-r44/adonis-vscode-extension
adonisjs vscode vscode-extension
Last synced: 2 months ago
JSON representation
💻 VSCode Extension for AdonisJS
- Host: GitHub
- URL: https://github.com/julien-r44/adonis-vscode-extension
- Owner: Julien-R44
- License: mit
- Created: 2022-03-09T12:25:20.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-17T19:08:42.000Z (8 months ago)
- Last Synced: 2024-05-17T20:26:03.870Z (8 months ago)
- Topics: adonisjs, vscode, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=jripouteau.adonis-vscode-extension
- Size: 3.25 MB
- Stars: 63
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
💻 Official AdonisJS extension for VSCode
# Features
* Command palette for Ace
* Use all Adonis Assembler commands ( make:\* )
* Migrate and seed your database ( db:\*, migration:\* )
* Run your commands from the Activity Bar
* View your routes within VSCode
* Open and see docs within VSCode
* .adonisrc.json file validation with JSON Schema
* Multiple Workspaces and Monorepos support
* Inertia.js support
* Go To Controller> [!NOTE]
> Make sure to also download [Edge](https://marketplace.visualstudio.com/items?itemName=AdonisJS.vscode-edge) and [Japa](https://marketplace.visualstudio.com/items?itemName=jripouteau.japa-vscode) extension for a better experience !## Ace commands
Launch `ace` commands directly from VScode.
Files created by adonis/assembler are automatically opened after their creation.![](https://i.imgur.com/BEb6Xpc.gif)
## ActivityBar and Tree Views
Run your commands without typing anything, See your routes and go to its code just by clicking on the items in the Activity Bar.![](https://i.imgur.com/fwOdNWF.gif)
## List Routes
List all routes in your project from VSCode and filter them.![](https://i.imgur.com/WEr7s5K.png)
## Documentations
Consult and search the Adonis and Japa documentation directly from VSCode.![](https://i.imgur.com/kMjBvdh.png)
## JSON Schema for .adonisrc
![](https://i.imgur.com/6K5wnvE.gif)## Route controller completion + Go To
Autocompletion for the name and the handler of controllers. Ctrl + Click to open the file. Hovering the handler will show its documentation.![](https://i.imgur.com/ZvnOtN3.gif)
# Configuration
- `nodePath`: The path to the node executable.
- `useUnixCd`: Use Unix-style `cd` for windows terminals (Useful when using Cygwin or Git Bash)
- `quickJump`: Enable quick jump by using Ctrl + Click
- `runMigrationInBackground`: Run migration/seeds commands in background. By default, they are executed in the built-in terminal of VSCode so that you can see the output.
- `pagesDirectory` : The directory where your Inertia.js pages are located. Default is `inertia/pages`## IntelliSense while typing
In the context of controller and view autocompletion, we are inside strings. By default, VSCode totally disables the display of IntelliSense suggestions inside strings. If you want to see the autocompletion of your controllers and views, you will have to press Ctrl + Space to manually trigger IntelliSense.If you want the suggestions while typing, you can add this to your VSCode settings:
```json
"editor.quickSuggestions": {
"other": "off",
"comments": "off",
"strings": "on" 👈 // This
}
```But be warned, this will automatically display intellisense even in "traditional" strings
# Contributing
* See [contributing guide](./.github/CONTRIBUTING.md)
* Clone the project and open it in VSCode
* Run `npm install`
* Press `F5` to open a new VSCode window with your extensions loaded.
* You can relaunch the extension from the debug toolbar after changing code in `src/extension.ts`.
* You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes.## Sponsors
If you like this project, [please consider supporting it by sponsoring it](https://github.com/sponsors/Julien-R44/). It will help a lot to maintain and improve it. Thanks a lot !
![](https://github.com/julien-r44/static/blob/main/sponsorkit/sponsors.png?raw=true)