2020-02-06 01:42:34 +01:00
# Manual installation
2019-12-02 05:35:37 +01:00
2024-05-25 22:16:31 +02:00
>This is a [Visual Studio Code ](https://code.visualstudio.com/download ) extension. It is best installed from the [on-line extensions marketplace ](https://marketplace.visualstudio.com/items?itemName=svaberg.vue2-grammar ), or from inside VS Code `Preferences/Extensions` and search for `vue2-grammar` .
2019-12-02 05:35:37 +01:00
_Alternatively_, the extension can be built and installed manually as in the next section. This should only be required for developers.
2020-02-06 01:42:34 +01:00
## Build the extension
2019-12-02 05:35:37 +01:00
1. Clone the repository and enter into the folder
```bash
2024-05-25 22:16:31 +02:00
git clone git@git.miqra.nl:pmkuipers/vue2-grammar.git
cd vue2-grammar
2019-12-02 05:35:37 +01:00
```
2. Install the required packages with `npm`
```bash
npm install
```
2020-02-06 01:42:34 +01:00
3. Compile with `npm`
```bash
npm run compile
```
At this point the extension may be debugged in the Extension Development Host:
```bash
code .
```
2023-01-19 22:15:27 +01:00
followed by the `Run/Start Debugging` dropdown (or the `F5` key). To observe the extension in action, view the file `demo.in` .
2020-02-06 01:42:34 +01:00
To complete the manual installation, follow the remaining steps to manually create and install the package:
## Package and install the extension
4. Create a package using `vsce`
2019-12-02 05:35:37 +01:00
```bash
vsce package
```
2024-05-25 22:16:31 +02:00
This should generate a `vue2-grammar-?.?.?.vsix` file in the current directory.
2020-02-06 01:42:34 +01:00
5. Manually install the extension in VS Code (you may want to replace the wildcards in the version number)
2019-12-02 05:35:37 +01:00
```bash
2024-05-25 22:16:31 +02:00
code --install-extension vue2-grammar-?.?.?.vsix
2019-12-02 05:35:37 +01:00
```
To test the installation, open the current folder in VS Code
```bash
code .
```
2020-02-05 22:24:21 +01:00
and view the file `demo.in` .