auto indentation like in vim or Emacs

I wonder if the Kate editor can be configured (and how …) to indent a line properly when the tab key is pressed. If you’ve used vim or emacs for coding, you know what I’m talking about. If not, it’s kind of hard to describe. Basically what happens is the indentation is determined by the syntax and sets to what the syntax dictates when you hit tab.

when you press the tab key while the cursor is on the lines of

                    if (a == b)  
       call_function();

will change the code to

if (a == b) call_function();

I hated it when I first tried to use it. Now I feel lost without it.

Reply

  • You can use Markdown syntax to format and style the text.
  • You may link to images on this site using a special syntax
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.