Skip to main content

VSCode Settings Reference

AuthorName

sourcepawn.AuthorName

The name of the plugin's author (you).

Default: ``

GithubName

sourcepawn.GithubName

The GitHub username of the plugin's author (you).

Default: ``

MainPathCompilation

sourcepawn.MainPathCompilation

Whether the compile button always compiles the MainPath file (true) or the currently opened file (false).

Default: true

showCompileIconInEditorTitleMenu

sourcepawn.showCompileIconInEditorTitleMenu

Whether to show the 'Compile Code' icon in editor title menu.

Default: true

runServerCommandsAfterCompile

sourcepawn.runServerCommandsAfterCompile

Run RCON commands after compiling.

Default: "false"

serverCommands

sourcepawn.serverCommands

A list of commands that will be sent to the server after a successful VSCode command or on runServerCommands.

Default: ["sm plugins refresh"]

uploadToServerAfterCompile

sourcepawn.uploadToServerAfterCompile

Upload files to FTP/SFTP after compiling.

Default: false

enableLinter

sourcepawn.enableLinter

Toggle the linter on or off.

Default: true

availableAPIs

sourcepawn.availableAPIs

Available Sourcemod APIs to quickly switch between them.

Default: [{"name":"","includeDirectories":[],"compilerPath":"","outputDirectoryPath":"","compilerArguments":[]}]

outputDirectoryPath

sourcepawn.outputDirectoryPath

The path to the output directory for the compiled .smx file. Ends with a /.

Default: ""

UploadOptions

sourcepawn.UploadOptions

Upload options for the FTP/SFTP client.

Default: {"host":"","port":21,"username":"","password":"","sftp":false,"remoteRoot":"/tf/addons/sourcemod","exclude":["scripting/**/",".vscode/**/",".github/**/",".gitignore","*.md",".git"]}

SourceServerOptions

sourcepawn.SourceServerOptions

Source server details to execute the commands on.

Default: {"host":"","port":27015,"encoding":"ascii","timeout":1000,"password":""}

formatterSettings

sourcepawn.formatterSettings

Settings for the formatter. Any setting supported by Clang Format can be used here.

Default: ["AlignAfterOpenBracket: Align","AlignArrayOfStructures: Left","AlignConsecutiveAssignments: AcrossEmptyLinesAndComments","AlignConsecutiveBitFields: AcrossEmptyLinesAndComments","AlignConsecutiveDeclarations: AcrossEmptyLinesAndComments","AlignConsecutiveMacros: AcrossEmptyLinesAndComments","AlignEscapedNewlines: Left","AlignOperands: AlignAfterOperator","AlignTrailingComments: true","AllowAllArgumentsOnNextLine: true","AllowAllConstructorInitializersOnNextLine: true","AllowAllParametersOfDeclarationOnNextLine: true","AllowShortBlocksOnASingleLine: Always","AllowShortCaseLabelsOnASingleLine: true","AllowShortEnumsOnASingleLine: true","AllowShortFunctionsOnASingleLine: All","AllowShortIfStatementsOnASingleLine: AllIfsAndElse","AllowShortLambdasOnASingleLine: All","AllowShortLoopsOnASingleLine: false","AlwaysBreakAfterDefinitionReturnType: None","AlwaysBreakAfterReturnType: None","AlwaysBreakBeforeMultilineStrings: false","AlwaysBreakTemplateDeclarations: No","BasedOnStyle: Google","BinPackArguments: true","BinPackParameters: true","BreakBeforeBinaryOperators: NonAssignment","BreakBeforeBraces: Custom","BraceWrapping: { AfterCaseLabel: true","AfterClass: true","AfterControlStatement: Always","AfterEnum: true","AfterExternBlock: true","AfterFunction: true","AfterNamespace: true","AfterObjCDeclaration: false","AfterStruct: true","AfterUnion: true","BeforeCatch: true","BeforeElse: true","BeforeLambdaBody: true","BeforeWhile: true","IndentBraces: false","SplitEmptyFunction: false","SplitEmptyNamespace: false","SplitEmptyRecord: false }","BreakBeforeConceptDeclarations: false","BreakBeforeTernaryOperators: true","BreakConstructorInitializers: AfterColon","BreakInheritanceList: AfterComma","BreakStringLiterals: false","ColumnLimit: 0","CompactNamespaces: true","ConstructorInitializerAllOnOneLineOrOnePerLine: true","ConstructorInitializerIndentWidth: ${TabSize}","ContinuationIndentWidth: ${TabSize}","Cpp11BracedListStyle: false","EmptyLineBeforeAccessModifier: LogicalBlock","FixNamespaceComments: true","IncludeBlocks: Preserve","IndentAccessModifiers: false","IndentCaseBlocks: false","IndentCaseLabels: true","IndentExternBlock: Indent","IndentGotoLabels: false","IndentPPDirectives: BeforeHash","IndentRequires: true","IndentWidth: ${TabSize}","IndentWrappedFunctionNames: true","LambdaBodyIndentation: OuterScope","Language: Cpp","MaxEmptyLinesToKeep: 1","NamespaceIndentation: All","ObjCBinPackProtocolList: Always","ObjCBreakBeforeNestedBlockParam: false","ObjCSpaceBeforeProtocolList: false","ReflowComments: true","SortIncludes: Never","SpaceAfterCStyleCast: false","SpaceAfterLogicalNot: false","SpaceBeforeAssignmentOperators: true","SpaceBeforeCaseColon: false","SpaceBeforeCpp11BracedList: false","SpaceBeforeCtorInitializerColon: true","SpaceBeforeInheritanceColon: true","SpaceBeforeParens: ControlStatementsExceptControlMacros","SpaceBeforeRangeBasedForLoopColon: true","SpaceBeforeSquareBrackets: false","SpaceInEmptyBlock: false","SpaceInEmptyParentheses: false","SpacesBeforeTrailingComments: ${TabSize}","SpacesInConditionalStatement: false","SpacesInContainerLiterals: true","SpacesInCStyleCastParentheses: false","SpacesInParentheses: false","SpacesInSquareBrackets: false","Standard: Auto","TabWidth: ${TabSize}","UseTab: Always","CommentPragmas: '^#define|#tryinclude'"]

trace.server

sourcepawn.trace.server

Set the logging level of the SourcePawnLanguageServer.

Default: "info"