NI DataPlugins Extension for Visual Studio CodeA Visual Studio Code extension that provides development support for NI DataPlugins written in Python. For more information about writing Python DataPlugins, please refer to the SystemLink Operations Handbook. Quick StartStep 1. Install this extension. Download from marketplace or download the latest vsix from Release.
Step 2. Create a new DataPlugin. Launch VSCode Command Palette (Ctrl+Shift+P), paste the command below, and press Enter.
Step 3. Export the DataPlugin. Right-click the *.py file you want to export.
SnippetsThis extension defines a few helpful Snippets that extend the auto-completion capabilities of VSCode. Start typing and press Ctrl+Space to display a list of suggestions. Use the following Snippets to quickly select a supported data type:
Use the following Snippets to insert the most common stubs:
Feel free to contribute additional Snippets to the project: snippets/snippets.json Advanced SettingsCustom TemplateStart writing your DataPlugin with your own custom template. Simply add your template to the .file-extensionsCreate a file Export PathSet the export path for all your plugins in Preferences -> Settings -> Extensions -> Python DataPlugins -> Export Path. The path can be a folder or a *.uri file. Example
ContributeContribute to this project by finding issues, requesting features or creating Pull Requests. General documentation about developing extensions for Visual Studio Code can be found here and here. Developer SetupTo compile this extension, run:
To test your changes, run:
Run the extension from VSCode by pressing LicenseSee LICENSE for details about how this extension is licensed. |