Rocket MV BASIC for VS Code is a free Visual Studio Code extension created by Rocket Software. This extension enables BASIC developers to modernize their MultiValue applications in one of the most popular development platforms with an exceptional editing experience.
This extension allows:
- Highlight BASIC statements and keywords
- Semantic highlighting
- Go to and Peek definition of includes and subroutines across files
- Auto-completing BASIC statements, keywords, and symbols
- Compiling, Debugging, and Cataloging BASIC programs on a U2 server
To see all features.
Editing BASIC programs is only supported on the machine where VS Code is installed. Direct online editing on remote MultiValue servers is not yet supported.
Requirements:
Install and start using the Rocket MV Basic extension.
-
Open Visual Studio Code.
-
Click the Extensions icon
(CTRL + SHIFT + X).
This opens the EXTENSIONS panel. -
Search for Rocket MV Basic.
-
Click Install and wait for the installation to complete.
If JDK is not part of your PATH you will have to configure the JDK Environment. In the Extensions panel:
-
Click Manage
> Extension settings.
This opens the Extension Settings window. -
In the JDK Environment section enter the full path to the JDK bin folder.
E.g., C:\jdk-20\bin.
The source code of your application is stored on the U2 server. The VS Code explorer shows your local file system, and to edit you need your account accessible on the computer you are using to run VS Code.
One way to do this is to create a file share of your U2 accounts folder, e.g.: C:\U2\UV or /usr/uv/.
This folder is the parent folder to accounts available on the application server. By mapping or mounting this file share to your development environment, you can open the accounts as workspaces.
Once you have your application server directories available locally:
-
Click File in the Menu bar and select Open Folder.
-
Browse to your (network) location and select the account you want to open as a workspace.
In this screenshot we browsed to the network location U:\, and selected the MVTUTOR account.

-
Click Select Folder.
The Do you trust the authors of the files in this folder? window opens.
-
Select to Trust the authors of all files in the parent folder.
-
Click Yes, I trust the authors.
Now that you have opened an account you can enable the extension. This will create two new subfolders: .rmv and .vscode.
-
Press F1.
This opens the command palette.
-
Type Activate Rocket MV Basic and click on the option as it appears.
-
Choose between UniVerse and UniData.
A notification will show Rocket MV BASIC extension started.
In the EXPLORER you will see two new folders: .rmv and .vscode. These are created by the extension and contain configuration files.
The VS Code extension can connect to your account on the U2 application server. This allows you to compile, debug, and catalog your programs. It also enables auto-completion and Go To definition. To connect to your account you need:
- the server address.
- your username.
- your password.
- the name of the account you want to open.
To connect:
-
Press F1.
The command palette opens.
-
Type Connect, then click Connect/Disconnect U2 server.
-
Type the server address and confirm with Enter.
-
Type your user name. If required, you can prefix your user name with your domain such as MYCOMPANY3\myname.
-
Type your password.
-
Type the name of the account you want to open. Then confirm with Enter
This shows the notification Connection to account MVTUTOR established.
-
Notice the check box and account name in the status bar, this indicates the connection status.
-
To disconnect press F1, then click Connect/Disconnect U2 server.
You will see a notification Disconnected from MV server.
When connected, you can disconnect by clicking on the account name in the status bar.
You are now connected. Let's create a new Hello World program and compile and run it.
-
In the EXPLORER expand your program folder. E.g., MVTUTORBP or BP.
-
Right-click the folder and select New file..., then enter the name HELLO.WORLD and confirm with Enter.
-
Type the following statement on the new and empty line 1.
CRT 'HELLO WORLD' -
Notice how the HELLO.WORLD editor tab now has a circle icon (⚫).
This indicates the program has changed and changes are not yet saved to disk.
-
Press CTRL + S to save the file.
The file is displayed as PLAIN TEXT without syntax highlighting. In rare cases your source code might be recognized as Visual Basic.
-
Click on Plain Text in the status bar to open the command palette, then type Rocket and click Rocket MV Basic.
This activates the extension for this editor, the program is now displayed with syntax highlighting. At a later stage you will add file associations to automatically enable syntax highlighting.
-
Click Run > Run without debugging (CTRL + F5), then click MVBasic debug in the command palette prompt.
A terminal window opens and the debug menu is displayed.
Optionally, a Windows Firewall window might ask for permission to connect JDK to your application server.
-
The terminal will print HELLO WORLD.
Click the links below to learn more about using each feature. You can also refer to the user manual documentation online.
Editing Features
- Auto completion
- Code folding
- Code lens
- Document symbols
- Diagnostics
- Find references
- Formatting
- Go to definition
- Hover
- Rename
- Semantic highlighting
- Signature help
- Online Editing
Development Environment
Others
Please visit our forum for more information.