Customizing the SciTE User.Properties file- How to tailor it to YOUR needs!

scite user.properties fileOut of the box, SciTE is a great editor!  I’m willing to bet the majority of people never customize it to their needs.  They are missing out!  In the below video I demonstrate how I customize the SciTE User.Properties file which allows me to tailor it very specifically to my needs.

In the below video I walk through my User.Properties file which you can download from here.  I don’t think anybody should have all of the settings I have, however I wanted to give y’all the syntax in case you want to borrow sections (without having to type it out.)   Please be sure you backup your SciTEUser.properties file before doing any of this (I recommend you email yourself a copy to have as a static backup file just in case…)

SciTE user.properties file

 

In the video I mentioned a few important points that you need to review before using my file.  By going to

Control Panel –> System–>Advanced System Settings–>Advanced–>Environmental Variables…

I created a system variable entitled: Scite_Home.  Having this variable present means I can control where SciTE looks for the User.Properties file.  (This was important for me because I work on many computers and wanted to have the same settings on all the computers.  I also ran into issues that SciTE4AHK would over-write my SciTE User Properties file when I updated it.)

 

 

Video review of my SciTE User.Properties file

I hope you take the time to play with your configuration.  It can be frustrating at times however, in the long run, it is definitely worth it!

SciTE User Properties file

Using built-in SciTE Find and Replace features- Great time savers!

It always amazes me of how frequently I have to manipulate text I in various ways.  More often than not it is simply doing a SciTE find and replace but being able to have other ways to manipulate text is also a great time saver!

In this video I walk through some of the tips & tricks of using SciTE search and replace text within the text editor.  I also demonstrate one of the “coolest” features which is block / typing across multiple lines.  This is a GREAT feature which many do not know how to use.  The Regular Expressions and dealing with line returns / new lines are also very helpful.

 

SciTE find and replace

In the video I also showed how I updated my AutoHotKey SciteUser.properties file.  Below is the line I added

And here are a couple of helpful pages with SciTE  documentation, SciTE RegEx documentation

demo SciTE Find and Replace features

Excellent SciTE search and replace functionality

To avoid having to escape parens (watch above video) add the following in your SciTE  user.properties file.   If set to 0, syntax uses the old Unix style where \( and \) mark capturing sections while ( and ) are themselves.  If set to 1, syntax uses the more common style where ( and ) mark capturing sections while \( and \) are plain parentheses.

find.replace.regexp.posix=1

Here are some useful POSIX terms which are more readable: [:xxx:] were xxx is one of the following words:
NAME DESCRIPTION
alnum    letters and digits
alpha    letters
word “word” characters (like \w)
digit    decimal digits (like \d)
space    white space
punct    printing characters, excluding letters and digits
lower    lower case letters
upper    upper case letters

Built-in SciTE Keyboard Shortcuts & Hotkeys: Accelerate your SciTE Usage

SciTE Keyboard Shortcuts & Hotkeys

SciTE Keyboard Shortcuts & Hotkeys

SciTE is a wonderful & powerful editor!  I love using it for AutoHotKey, Python, HTML, SPSS, SQL, XML, and more!  Below are SciTE Keyboard Shortcuts & Hotkeys  to use with SciTE .  I’ve bolded a few of the ones that I use very frequently.  You also may like to check out the documentation.   I have custom SciTE Hotkeys that I’ve added however they require updating files like the user.properties file which review in a this post.

SciTE Keyboard Shortcuts & Hotkeys

Ctrl+Keypad+Magnify text size.
Ctrl+Keypad-Reduce text size.
Ctrl+Keypad/Restore text size to normal.
Ctrl+TabCycle through recent files.
TabIndent block.
Shift+TabDedent block.
Ctrl+BackSpaceDelete to start of word.
Ctrl+DeleteDelete to end of word.
Ctrl+Shift+BackSpaceDelete to start of line.
Ctrl+Shift+DeleteDelete to end of line.
Ctrl+HomeGo to start of document.
Ctrl+Shift+HomeExtend selection to start of document.
Alt+HomeGo to start of display line.
Ctrl+EndGo to end of document.
Ctrl+Shift+EndExtend selection to end of document.
Alt+EndGo to end of display line.
Ctrl+Keypad*Expand or contract a fold point.
Alt+F2Select to next bookmark.
Alt+Shift+F2Select to previous bookmark.
Ctrl+F3Find selection.
Ctrl+Shift+F3Find selection backwards.
Ctrl+UpScroll up.
Ctrl+DownScroll down.
Ctrl+LLine cut.
Ctrl+Shift+TLine copy.
Ctrl+Shift+LLine delete.
Ctrl+TLine transpose with previous.
Ctrl+DSelection duplicate.   (Great to use in SciTE editor)
Ctrl+KFind matching preprocessor conditional, skipping nested ones.
Ctrl+Shift+KSelect to matching preprocessor conditional.
Ctrl+JFind matching preprocessor conditional backwards, skipping nested ones.
Ctrl+QComment out line  (Great to use in SciTE editor)
Ctrl+Shift+JSelect to matching preprocessor conditional backwards.
Ctrl+[Previous paragraph. Shift extends selection.
Ctrl+]Next paragraph. Shift extends selection.
Ctrl+LeftPrevious word. Shift extends selection.
Ctrl+RightNext word. Shift extends selection.
Ctrl+/Previous word part. Shift extends selection
Ctrl+\Next word part. Shift extends selection.
Alt+Shift+MovementRectangular block selection.
Alt+Shift+HomeExtend rectangular selection to start of line.
Alt+Shift+EndExtend rectangular selection to end of line.

 

SciTE Keyboard Shortcuts & Hotkeys

Programmatically interact with the SciTE editor via COM objects

SciTE editor via COM objects

SciTE editor via COM objects

SciTE is a great IDE that I use with AutoHotKey, SPSS, SQL, Python, XML, HTML, etc.   I love being able to use regular expressions in it to manipulate text and it has some very cool capabilities.  This video is one of my favorite demonstrations how powerful SciTE can be at manipulating text.

Here is a short tutorial and demonstration on how to manipulate SciTE editor via COM objects and Windows commands with AutoHotKey.

 

SciTE editor via COM objects- Editor Windows Commands

A specific version of the SciTE editor for AutoHotKey can be downloaded here and more generic documentation can be found here.