What is VSCode Workcube Extension? How does it work, how to install and use it?


Workcube Extension is a VS Code editor extension developed for Workcube. It contains Custom Tags, JS functions, parameters that can be used with Custom Tags, and css that can be used, belonging to Workcube.


Installation Steps:

As in the image above, you can install the vsix extension file in the vscode/workcube-extension/vsix folder as you see below:

After the third step, you can choose the vsix file and install it by following the path in the first image.


Another method is:

Right click on the VSIX file and select the Install Extension VSIX option.


General use:

The snippets attached to the Extension can be used when starting to write code or with the Ctrl+Space shortcut. All snippets are read from json files in the snippets/ folder. During use, you will come across several options:

The options that will appear with the wrk: prefix represent Custom Tags.

The options that will appear with the wsub: prefix represent the parameters that can be used for Custom Tags.

o    You don't need to use wsub to see parameters in Custom Tag.

o    Instead, you can use the Ctrl+Shift+Space shortcut in the Custom Tag.

o   For Example:

As in the example above; When you use the Ctrl+Shift+Space shortcut between the > sign, you can see the parameters available for cf_box.

The ones that start with the wdata: prefix are workdata. It allows you to add the necessary CreateObject command for the workdata you will use.

For the name parameter of the Custom Tag, the combo_name:list snippet can be used when using workdata names.


Development:

To develop in the Extension, you need to edit the vscode\workcube-extension folder.

Before making any changes, you should review the snippets/*_instruction.txt file for the file you will change.

Feedback

Did you find this content helpful?