-
-
Notifications
You must be signed in to change notification settings - Fork 23
Home
Charles edited this page Sep 9, 2021
·
8 revisions
This method works, but it is not encouraged, as you will have to do it again on the next extension's update.
- After you installed the extension, press CTRL+SHIFT+P (Windows and Linux) or CMD+SHIFT+P (MacOS) to bring up the command palette.
- Type
SM Install Sourcemod
. - Wait for the process to complete and you are ready to go.
- Download the latest stable release of SourceMod for the AlliedModders' website.
- Unzip the folder somewhere on your computer.
- Go to VSCode's settings, and navigate to
sourcepawn.SourcemodHome
. - 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
. - Navigate to the
sourcepawn.SpcompPath
setting. - Copy the path to spcomp in the folder you've just unzipped. It should look like:
C:\Users\Sarrus\Dev\sourcemod\scripting\spcomp.exe
.
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.