SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: erezzi on July 19, 2006, 12:45:04 PM

Title: No indentation problem
Post by: erezzi on July 19, 2006, 12:45:04 PM
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
Title: Re: No indentation problem
Post by: Dan on July 19, 2006, 12:47:10 PM
If you go to Tools>Options>File Extension Setup, and select "c" as the file extension, what is "Indent Style" set to?
Title: Re: No indentation problem
Post by: erezzi on July 19, 2006, 12:56:18 PM
Set to 'None'. I guess that it should be something else.
Title: Re: No indentation problem
Post by: Dan on July 19, 2006, 01:02:20 PM
Yes, you want to set that to "Syntax Indent", and probably set the value to the same as Tabs.
Title: Re: No indentation problem
Post by: erezzi on July 19, 2006, 02:00:30 PM
Thanks!