Skip to content

Latest commit

 

History

History
39 lines (34 loc) · 1.95 KB

Tabspaces.md

File metadata and controls

39 lines (34 loc) · 1.95 KB

About

Useful extension if spaces are used instead of tabs in SciTE4AutoIt.

Current

v 0.2

Requires

CommonTools.lua

Usage

  • Load the file with "SciTEStartup.lua"
  • New entry in SciTEUser.properties:
    use.tabs.$(file.pattern.EXT)=0  or  use.tabs.EXT=0 .
    Don't use  use.tabs=0  !
    If the property is set to  >0  , the script will not respond. For use with values other than the default, see remarks.

Functions

Key SequenceSingle CaretRectangular Selection
Shift+BackspaceDelete chars from caret until previous tab positionThe same in each line of selection. The rectangular selection remains after the operation.
Shift+DelDelete chars from caret until next tab positionThe same in each line of selection. The rectangular selection remains after the operation.
Alt+Arrow_LeftSkip to previous Tab position --
Alt+Arrow_RightSkip to next Tab position--

Remarks

The default Tab size is 4. You can change this setting specified for your file types. The following properties need changes:

tab.size.$(file.pattern.EXT)=VALUE
indent.size.$(file.patterns.EXT)=VALUE

The (not file type specific) values:

tab.indents=1
backspace.unindents=1

should also set.
If  tab.indents  is set then pressing tab within indentation whitespace indents by indent.size rather than inserting a tab character. If  backspace.unindents  then pressing backspace within indentation whitespace unindents by indent.size rather than deleting the character before the caret.