Skip to content
Charles edited this page Sep 9, 2021 · 8 revisions

Getting started

The quick method

This method works, but it is not encouraged, as you will have to do it again on the next extension's update.

  1. After you installed the extension, press CTRL+SHIFT+P (Windows and Linux) or CMD+SHIFT+P (MacOS) to bring up the command palette.
  2. Type SM Install Sourcemod.
  3. Wait for the process to complete and you are ready to go.

The recommended method

  1. Download the latest stable release of SourceMod for the AlliedModders' website.
  2. Unzip the folder somewhere on your computer.
  3. Go to VSCode's settings, and navigate to sourcepawn.SourcemodHome.
  4. Copy the path to the include folder in the folder you've just unzipped. It should look like: C:\Users\Sarrus\Dev\sourcemod\scripting\include.
  5. Navigate to the sourcepawn.SpcompPath setting.
  6. Copy the path to spcomp in the folder you've just unzipped. It should look like: C:\Users\Sarrus\Dev\sourcemod\scripting\spcomp.exe.

Setting up your project

If you are working on a large project with multiple .sp files or in a workspace with several unrelated .sp files, you have to set the entry-point for the extension. This is the file that you use to compile your project. To do so, open your main .sp file, right click anywhere on the code and click on SM Set current file as main. This will make sure the extension works correctly with your project.

Clone this wiki locally