Commands - Sarrus1/sourcepawn-studio GitHub Wiki
Extension's commands
Basics
Commands can be run from the commands's palette. To open it, hit CTRL+SHIFT+P on Windows and Linux of CMD+SHIFT+P on Mac, or go to View>Command Palette.
Some commands can also be run from the editor's menu. Right click anywhere on the screen to get a list of available commands.
SM Create Task File
This command will create a tasks.json file.
Source
{
"command": "sourcepawn-vscode.createTask",
"title": "SM Create Task File",
"category": "Project"
}
SM Create Script File
This command will create a .sp file with the name of your project's folder.
Source
{
"command": "sourcepawn-vscode.createScript",
"title": "SM Create Script File",
"category": "Project"
}
SM Create README File
This command will create a ReadMe file.
Source
{
"command": "sourcepawn-vscode.createREADME",
"title": "SM Create README File",
"category": "Project"
}
SM Create GitHub Actions
This command will create a GitHub actions .yml file.
Source
{
"command": "sourcepawn-vscode.createMaster",
"title": "SM Create GitHub Actions",
"category": "Project"
}
SM Create Project
This command combines all the commands above and creates a new project.
Source
{
"command": "sourcepawn-vscode.createProject",
"title": "SM Create Project",
"category": "Project"
}
SM Upload to Server
This command will upload files to your server using FTP/SFTP. Learn how to configure it here.
Source
{
"command": "sourcepawn-vscode.uploadToServer",
"title": "SM Upload to Server",
"category": "Project"
}
SM Refresh Server Plugins
This command will run sm plugins refresh
on your Source Server using the RCON protocol. Learn how to configure it here.
Source
{
"command": "sourcepawn-vscode.refreshPlugins",
"title": "SM Refresh Server Plugins",
"category": "Project"
}
SM Compile file
This command will compile the active file or the Main Path depending on the value of this setting.
Source
{
"command": "sourcepawn-vscode.compileSM",
"title": "SM Compile file",
"category": "ShortcutMenuBar",
"icon": {
"light": "fileicons/images/compile.svg",
"dark": "fileicons/images/compile.svg"
}
},
SM Insert Function Parameters
This command will insert the parameters of the function automatically. Can be binded to tab for productivity. See this discussion for more details.
Source
{
"command": "sourcepawn-vscode.insertParameters",
"title": "SM Insert Function Parameters",
"category": "Project"
}
SM Set current file as main
This command will set the active file as the Main Path file. See this for more details on this setting.
Source
{
"command": "sourcepawn-vscode.setFileAsMain",
"title": "SM Set current file as main",
"category": "Project"
}
SM Install sourcemod
This command will download SourceMod from AlliedModders and configure SPComp Path and Sourcemod Home for you.
Source
{
"command": "sourcepawn-vscode.installSM",
"title": "SM Install sourcemod",
"category": "Project"
}