This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
🚀 Installation & Getting Started
This page guides you through the installation of the BMC TPL Code All around extension in Visual Studio Code and shows you how to get started immediately.
📦 Installation (The Easy Way)
Since the plugin is currently distributed via this repository, you can easily install it as a .vsix package (Visual Studio Extension).
- Go to the Releases section in this repository.
- Download the latest file with the
.vsixextension (e.g.,bmc-tpl-code-all-around-0.0.1.vsix). - Open Visual Studio Code.
- Go to the Extensions section in the left sidebar (
Ctrl + Shift + X). - Click on the three dots icon (
...) in the top right corner of the Extensions menu and select "Install from VSIX...". - Select the downloaded
.vsixfile. - Done! After a few seconds, VS Code will notify you that the extension was successfully installed.
Alternatively, you can simply drag and drop the downloaded file into the Extensions view of Visual Studio Code. You can also perform manual updates this way.
🛠️ Installation from Source (For Developers)
If you want to contribute to the extension yourself or test the latest (perhaps unreleased) version, you can compile it directly from the source code:
- Prerequisites: You need Node.js and npm installed on your system.
- Clone the Repository:
git clone https://wiccafe.de/kuro/bmc-tpl-code-all-around.git cd bmc-tpl-code-all-around npm install - Compile & Run in VS Code: Open the folder in VS Code. Simply press
F5. A new VS Code window ("Extension Development Host") will open, with the plugin loaded and ready to use. - Build your own VSIX: If you want to package it yourself, use the command:
(Note: This requires vsce to be installed globally:npm run packagenpm install -g @vscode/vsce)
🏁 First Steps
Once installed, the plugin activates automatically as soon as you open a file with the .tpl extension.
Here are three things you should try right away:
1. Generate the Skeleton
Create an empty file named test.tpl. Type the word tpl. The auto-completion should now suggest the snippet tpl_skeleton. Press Enter or Tab – and the complete module skeleton (including metadata, pattern, triggers, and a log statement) will be generated instantly!
2. Set Your Own Data
To avoid typing your name and company structure every time you generate new files:
- Open the VS Code Settings (
Ctrl + ,or via the gear icon in the bottom left). - Search for
TPL. - Under BMC TPL Settings, enter your name (Author), the Publisher, and the start of your Tree-Path.
- Tip: These settings are applied immediately without restarting the plugin!
3. Annoy the Linter
In your generated code, intentionally delete a semicolon at the end of a line or change an assignment from := to a simple =. The intelligent linter should trigger immediately and mark the spot in red or yellow. If you hover over it with your mouse, it will explain exactly what is wrong.
Ready for more? Check out the Features & Usage in detail in the next step!