Author Topic: No indentation problem  (Read 7315 times)

erezzi

  • Community Member
  • Posts: 15
  • Hero Points: 0
No indentation problem
« 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

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2896
  • Hero Points: 153
Re: No indentation problem
« Reply #1 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?

erezzi

  • Community Member
  • Posts: 15
  • Hero Points: 0
Re: No indentation problem
« Reply #2 on: July 19, 2006, 12:56:18 PM »
Set to 'None'. I guess that it should be something else.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2896
  • Hero Points: 153
Re: No indentation problem
« Reply #3 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.

erezzi

  • Community Member
  • Posts: 15
  • Hero Points: 0
Re: No indentation problem
« Reply #4 on: July 19, 2006, 02:00:30 PM »
Thanks!