You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an extension for T++ Programming Language Syntax Highlighting.
3
+
4
+
## How to Use
5
+
In this repository there is an file called: ***tpp-extension.vsix***, to run this extension you have to go to *VS Code* and in the tab 'Extensions' click in the 'Install from ***VSIX***...'
6
+
7
+
## The First Steps
8
+
To create a new extension for *VS Code*, it is need to run the following command to install the dependencies:
9
+
```sh
10
+
npm install -g yo generator-code vsce
11
+
```
12
+
13
+
and:
14
+
```sh
15
+
yo code
16
+
```
17
+
18
+
to create the initial structure for the ***New Language Support*** Extension.
19
+
20
+
After putting everthing we want to the new programming language, you need to create the *.vsix* file, using the command:
* This folder contains all of the files necessary for your extension.
6
+
*`package.json` - this is the manifest file in which you declare your language support and define the location of the grammar file that has been copied into your extension.
7
+
*`syntaxes/tpp.tmLanguage.json` - this is the Text mate grammar file that is used for tokenization.
8
+
*`language-configuration.json` - this is the language configuration, defining the tokens that are used for comments and brackets.
9
+
10
+
## Get up and running straight away
11
+
12
+
* Make sure the language configuration settings in `language-configuration.json` are accurate.
13
+
* Press `F5` to open a new window with your extension loaded.
14
+
* Create a new file with a file name suffix matching your language.
15
+
* Verify that syntax highlighting works and that the language configuration settings are working.
16
+
17
+
## Make changes
18
+
19
+
* You can relaunch the extension from the debug toolbar after making changes to the files listed above.
20
+
* You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes.
21
+
22
+
## Add more language features
23
+
24
+
* To add features such as intellisense, hovers and validators check out the VS Code extenders documentation at https://code.visualstudio.com/docs
25
+
26
+
## Install your extension
27
+
28
+
* To start using your extension with Visual Studio Code copy it into the `<user home>/.vscode/extensions` folder and restart Code.
29
+
* To share your extension with the world, read on https://code.visualstudio.com/docs about publishing an extension.
0 commit comments