Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>CS2 Map ScriptingNew to Visual Studio Code? Get it now.
CS2 Map Scripting

CS2 Map Scripting

AcaroMan

|
2 installs
| (0) | Free
IntelliSense for CS2 map scripts — completions, hover docs, and diagnostics for the cs_script/point_script JavaScript API.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

cs_script Helper

VS Code extension providing IntelliSense for cs_script — the JavaScript scripting API for Counter-Strike 2 maps.

Features

  • Completions for Instance methods and other Domain receiver members
  • Auto-import — accepting a symbol like Entity from the completion list automatically adds the import
  • Go to Definition and hover docs for Domain receiver methods and imported API types
  • No project config files are written to your workspace

Requirements

  • VS Code 1.87+
  • A CS2 map project containing .js script files

Getting started

The extension activates automatically when a JavaScript file containing a cs_script/point_script import is opened. A prompt will appear:

cs_script imports detected. Enable cs_script IntelliSense for this workspace?

Click Enable. Alternatively, run the cs_script: Enable cs_script IntelliSense command from the Command Palette, or click the lightbulb on an import line.

Once enabled, the setting csscript.enable: true is saved to the workspace so it starts automatically on future opens.

Usage

import { Entity, Instance } from 'cs_script/point_script';
  • Type Instance. to see all available callbacks and methods
  • Type a class name (e.g. Ent) and accept from the completion list — the import is added automatically
  • Ctrl+click an imported type to jump to its declaration

Type declarations

Declaration files are bundled with the extension and kept up to date with CS2 game updates.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft