Difference between revisions of "Sublime Text Setup"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>SLiesegang
 
imported>SLiesegang
Line 4: Line 4:


==Loading syntax highlighting and auto-complete==
==Loading syntax highlighting and auto-complete==
#Copy the Papyrus folder from [[Media:Papyrus.zip|this zip file]] to your local drive: C:\Users\[USERNAME]\AppData\Roaming\Sublime Text 2\Packages
#Copy the Papyrus folder from [[Media:Papyrus.zip|this zip file]] to your local drive: %APPDATA%\Roaming\Sublime Text 2\Packages
#Select Papyrus from the Tools -> Build System menu. (You should be able to leave this as "automatic," but just in case.)
#Select Papyrus from the Tools -> Build System menu. (You should be able to leave this as "automatic," but just in case.)



Revision as of 10:54, 23 January 2012

Sublime Text is a new text editor that has a lot of modern features, a pretty cool dev community, and a very slick feel to it. We've made a package for it that makes it a good tool for developing Papyrus scripts.

Go to the Sublime Text website and install the latest release of version 2.

Loading syntax highlighting and auto-complete

  1. Copy the Papyrus folder from this zip file to your local drive: %APPDATA%\Roaming\Sublime Text 2\Packages
  2. Select Papyrus from the Tools -> Build System menu. (You should be able to leave this as "automatic," but just in case.)

Quick Compile

Assuming that your copy of the Papyrus Compiler and its associated batch files are still in their default locations, you should be able to hit F7 while looking at a Papyrus file to run it through the compiler. (The output will appear in the bottom panel, so be sure to check for any errors!)

Updating the snippets

The existing Papyrus package for Sublime Text includes a number of snippets that will auto-complete to frequently used things (like typing "onhit" and then tab will create a proper OnHit event so you don't have to constantly be looking up the syntax). If you want to make more of these, you can simply add another .sublime-snippet file to the Package directory. Documentation on snippets is available at Sublime Text docs site.