VSCode Extension¶
After installing both the PyPI package and VSCode extension, t-linter will automatically provide syntax highlighting for Python template strings.
Setup¶
Disable Python Language Server¶
To prevent conflicts with t-linter's syntax highlighting, disable the Python language server:
- Open VSCode Settings (Ctrl+, / Cmd+,)
- Search for "python.languageServer"
- Set it to "None"
Alternatively, add to your settings.json:
Configure the Server Path (if needed)¶
If t-linter is not in your PATH, configure the server path in VSCode settings:
-
Find your t-linter path by running in terminal:
-
Open VSCode Settings (Ctrl+, / Cmd+,)
- Search for "t-linter.serverPath"
- Set the full path to your t-linter executable
Common paths:
| OS | Path |
|---|---|
| Windows | C:\Users\YourName\AppData\Local\Programs\Python\Python3xx\Scripts\t-linter.exe |
| macOS | /Users/yourname/.local/bin/t-linter or /usr/local/bin/t-linter |
| Linux | /home/yourname/.local/bin/t-linter or /usr/local/bin/t-linter |
Troubleshooting¶
If syntax highlighting doesn't work:
- Ensure t-linter is installed: Run
t-linter --versionin terminal - Check that Python language server is disabled:
python.languageServershould be set to"None" - Check the server path: Verify
t-linter.serverPathin VSCode settings - Restart VSCode after making changes