Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ObjectScript CSP Language ConfigurationNew to Visual Studio Code? Get it now.
ObjectScript CSP Language Configuration

ObjectScript CSP Language Configuration

Thomas Koppens

|
2 installs
| (0) | Free
Adds HTML-style auto-closing and Emmet support to InterSystems CSP files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Language Configuration for ObjectScript CSPs

The InterSystems ObjectScript Extension provides language support for classes and routines, but not Caché Server Pages.

This extension implements a language configuration for them, adding expected features like auto-closing brackets and quotes.

Demo of auto-closing brackets, parentheses, quotes, and #server()

Features

  • Auto-closing brackets and quotes, as well as #()#, #server(), and #call()
  • Wrapping code with brackets
  • Smart Indentation: Indenting on enter in for loops, if statements, HTML tags, etc.
  • Comment toggling: Commenting out a code line or block with Ctrl + /

Requirements

This extension is designed to work alongside the official InterSystems ObjectScript Extension.

Recommendations

For auto-closing tags, it is recommended to install Auto Close Tag. To enable support for CSP files, follow these steps:

  1. Press Ctrl + ,

  2. Enter auto-close-tag in the search bar

  3. Find Auto-close-tag: Activate On Language

  4. Click Edit in settings.json

  5. Add "objectscript-csp" to the list

    Auto Close Tag: Activate on Language setting

Preventing Auto-closing of Specific Tags

In some cases, such as CSP:CLASS, the tag is not meant to be closed. To prevent the default behaviour, you can exclude them in the settings.

Follow steps 1-2 above and then:

  1. Find Auto-close-tag: Excluded Tags

  2. Click Edit in settings.json

  3. Add the tag to the list (IMPORTANT: the tag needs to be lowercase to work)

    Auto Close Tag: Excluded Tags setting
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft