The TPL extension is a powerful tool for developers who work with TPL scripting. It provides a comprehensive set of features to streamline your TPL development workflow within Visual Studio Code.
Note
TPL allows kotlin code injection, to enable syntax highlighting for it make sure to have an extension installed which contains syntax highlighting for kotlin. We recommend using Kotlin Language extension by mathiasfrohlich.
Enjoy syntax highlighting and code completion for .tpl
files. The extension defines a language configuration specifically for TPL, providing a more intuitive editing experience.
Boost your TPL development speed with pre-written code snippets. The extension offers a collection of commonly used TPL constructs to help you write code faster and more efficiently.
Run/Debug your TPL scripts with ease. Set breakpoints, step through your code line-by-line, and inspect variables to identify and resolve issues efficiently.
There are two ways to install the TPL extension:
- Open the Extensions view in VS Code (Ctrl+Shift+X or Cmd+Shift+X).
- Search for "TPL Extension".
- Click on the extension by "Tanish Ranjan" and select "Install".
- Download the latest VSIX package from Releases Section.
- Open the Extensions view in VS Code.
- Click the three dots (...) in the top right corner and select "Install from VSIX...".
- Navigate to the downloaded VSIX file and select it.
- Click "Install" to proceed.
- Open a
.tpl
file in VS Code. - Configure the TPL interpreter path in your VS Code settings (search for "tpl.interpreterPath"). You can also use the "Select TPL Interpreter" command (Ctrl+Shift+P and type "tpl.selectInterpreter") from the command palette.
- Click "Run TPL File" from title menu in the top right side of VS Code. The extension will execute the script using the configured interpreter.
- Open a
.tpl
file in VS Code. - Start typing a common TPL construct (e.g., "var", "fun").
- As you type, VS Code will suggest relevant code snippets from the TPL extension.
- Select the appropriate snippet to insert it into your code.
You can customize some aspects of the TPL extension through your VS Code settings:
tpl.interpreterPath
: Set the path to your TPL interpreter JAR file.- You can also configure keyboard shortcuts for running and debugging TPL scripts (refer to VS Code documentation for custom keybindings).
We welcome contributions from the community! If you have any bug fixes, improvements, or new features you'd like to see in the TPL extension, feel free to create a pull request on the GitHub repository https://github.com/Tanish-Ranjan/TPL-VSC-Extension.
This extension is licensed under the GNU General Public License v3.0 (GPL-3.0). See the LICENSE file for more information.
Enjoy using the TPL extension!