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.

Debug with SciTE – Reduce the amount of coding time in AutoHotKey

Debug with SciTE

Debug with SciTE and AutoHotKey

Debugging can be very time consuming. If you’re using SciTE with AutoHotKey, there is built-in functionality that is very helpful.  This video walks through some of the cool debugging features in SciTE.  I also have  a second debugging with SciTE video that you should check out after watching this one.

Make sure you take the time to review both videos!  I guarantee it will increase your speed of developing code and trouble-shooting issues!

Debug AutoHotKey with SciTE

Debug with SciTE

Below is the AutoHotKey script I used in the video: