Skip to content

Instantly share code, notes, and snippets.

@rumblefrog
Last active April 7, 2021 20:06
Show Gist options
  • Save rumblefrog/61948f0a060c0007f67e905542ee207b to your computer and use it in GitHub Desktop.
Save rumblefrog/61948f0a060c0007f67e905542ee207b to your computer and use it in GitHub Desktop.
SourcePawn VSCode Task
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Compile plugin",
"type": "shell",
"presentation": {
"panel": "new"
},
"windows":{
"command": "F:\\Github\\Sourcemod-Workplace\\spcomp.exe",
"args": [
"${file}",
"-E",
"-O2",
"-v2",
"-iF:\\Github\\Sourcemod-Workplace\\include",
"-i${workspaceFolder}\\include",
"-o${workspaceFolder}\\${fileBasenameNoExtension}.smx"
],
},
"linux": {
"command": "/home/fishy/Github/Sourcemod-Workplace/spcomp64",
"args": [
"${file}",
"-E",
"-O2",
"-v2",
"-i/home/fishy/Github/Sourcemod-Workplace/include",
"-i${workspaceFolder}/include",
"-o${workspaceFolder}/${fileBasenameNoExtension}.smx"
],
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$msCompile"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment