sakura/en/Smart Indent

Last-modified: 2008-03-29 (土) 15:59:41

Smart Indent

An indent or a reverse-indent is done according to corresponding "「{, }".
At present, it is prepared only for C/C++.

A smart indent is invalid in the line comment and in the comment block.

  • At Input "}"
    It is adjusted to the same indent as "{" that corresponds.
  • At Input "{"
    The same indent from "{" immediately before as "}" +1 indent and immediately before.
  • At Input ":"
    ???????
  • At Input "CRLF"
  1. 1 indent from "(" immediately before, +1 indent from "{" immediately before.

The line (pre-processor) that starts by "#" becomes outside the object of a smart indent.

It came to operate according to software TAB (Space is inserted instead of the tab) setting. (sakura:1.5.8.0 or later)