A Visual Studio Code (VSCode) extension to help working with IES in Terse RDF Triple Language (TTL) (.ttl) files
Features:
-
Colour highlighting - Highlights IES classes according to their defined colours
-
Diagnostics - Syntax highlights missing commas, dots, semicolons
-
IES class suggestions - Suggests IES classes as you type
-
On hover matches - Hover over a URI to reveal IES type
- Download latest releases
In VSCode:
-
Click "Extensions" icon in the Activity Bar on the side of VS Code or the View: Extensions command
Cmd/Ctrl + Shift + x
. -
Click on the Extensions view command dropdown, the three dots (
...
), located at the top of the Extensions view and select Install from VSIX... -
Navigate to the downloaded release file (step 1) and select it.
-
Select theme IES Highlighter1 dark+ default
Cmd/Ctrl + k
thenCmd/Ctrl + t
. Or go to the Extensions view -> ies-extension -> Set Colour Theme.
1 Note: Syntax highlighting has not been optimized for "light" themes, e.g. highlights ies:
prefix as white.
The extension should now be activated when you open .ttl files.
Additional, optional, steps if you don't want to change themes and still have colour highlighting:
-
Go to VS Code settings - open the Settings editor by navigating to
Code > Settings > Settings
or using the shortcutCmd/Ctrl + ,
-
Search settings - In the Settings Search bar, type
editor.tokenColorCustomizations
and selectEdit in settings.json
-
Append contents - Use
Ctrl/Cmd + C
and thenCtrl/Cmd + V
to copy and paste the contents of the file main/for_settings.txt to the JSON in settings.
Further information on managing extensions in VS Code can be found on the Microsoft VS Code Extension Marketplace page.
-
Install extension, as above
-
Select theme within the IES Syntax Highlighter extension page in VS Code, as required
-
Create or open a file ending with extension .ttl
-
Enter IES TTL data and the features of the IES Syntax Highlighter will highlight classes, diagnose syntax errors, autocomplete classes and track what type instances are.