A Sublime Text 3 plugin that dynamically genenerates completions for SourcePawn.
Based on sublime-sourcepawn.
Includes watchdog python module
Via package control
- Press
Control+Shift+P
orCmd+Shift+P
(on Mac) - Type Package Control: Install Package, hit enter.
- Type in SourcePawn Completions, hit enter again.
Clone this repository into a subfolder of your Packages directory:
- Mac OS
~/Library/Application Support/Sublime Text 3/Packages/
- Windows
%APPDATA%/Sublime Text 3/Packages/
Note: All paths must be an absolute. Relative paths are unsupported.
- Open Sublime Text -> Preferences -> Package Settings -> SourcePawn Completions -> Settings - User.
- Add
include_directory
setting with path to your SourceMod include files (sourcemod/scripting
folder). (You could look for some exmaples in Settings - Default) - Save and close file.
- Open Sublime Text -> Preferences -> Package Settings -> SourcePawn Completions -> Build settings - Example and Build settings - User
- Copy one of
cmd
settings fromSourcePawn.sublime-build.example
, paste it toSourcePawn.sublime-build
and ajust path tospcomp
. This allows you to use Build feature in SublimeText. - Save and close file.
SourcePawn Completions is automatically active on .sp and .inc files. The completion list updates whenever you stop typing for 1 second or when you save the file.
To take full advantage recommend to install the following packages:
- SourcePawn Syntax Highlighting (available in Package control)