SlickEdit Product Discussion > SlickEdit®

No indentation problem

(1/1)

erezzi:
Hi,

I'm using Slick Edit v9.0.4 on Linux. A few weeks ago, a problem with indentation started: when writing C code, I expect that when I click "Enter", the cursor will jump to the next line, but not to the beginning of the line. It should jump to the beginning + a number of TABs according to the nesting level. Instead, it always jumps to the beginning of the next line.

For example:

int func(void)
{
    int a; <- if I click "enter" now, I expect the cursor to jump to the next line and move 1 TAB forward. Instead, it jumps to the beginning of the next line.

Even if I close Slick Edit, delete the .vslick dir and start Slick Edit, the problem isn't solved.

Any idea?

Thanks
Erez

Dan:
If you go to Tools>Options>File Extension Setup, and select "c" as the file extension, what is "Indent Style" set to?

erezzi:
Set to 'None'. I guess that it should be something else.

Dan:
Yes, you want to set that to "Syntax Indent", and probably set the value to the same as Tabs.

erezzi:
Thanks!

Navigation

[0] Message Index

Go to full version