You can customize the editor on a global level from the extension settings inside
Visual Studio Code.
- In
Visual Studio Code, click
File > Preferences > Settings.
- Expand
Extensions, and click
Rocket COBOL.
- Use the extension settings:
- Micro Focus COBOL: Install Location - set this to specify the path to the install location of your licensed Micro Focus
COBOL or
Enterprise Developer product. This is required for a number of features, including compiling and debugging, and the language
server, to work.
- Micro Focus COBOL: Language Server Autostart - enabled by default. If COBOL Language Server is available through a licensed
COBOL or
Enterprise Developer product, it automatically starts when
Visual Studio Code finds COBOL sources in the workspace.
- COBOL Language Server > Trace: Server - specify the level of verbosity between
Visual Studio Code and the COBOL Language Server.
- You can specify the following editor settings:
Add file associations
If your COBOL source files are not colorized, this might be because
Visual Studio Code does not have the required file association. To add a file association:
- Click
.
- In the
Association section, click
Add Item.
- Add the file association in the following format:
- .extension
- For example,
.ss.
- programming-language
- For example,
cobol.
To customize the editor for the current COBOL file:
- Click the language toolbar status item,
{}, in the bottom right corner of the
Visual Studio Code main window. Use the
Configure buttons for the
Source Format and
Dialect items in to change the settings only for the currently active file: