Author Topic: indentation problems with vslick 13.0.1  (Read 3281 times)

erezzi

  • Community Member
  • Posts: 15
  • Hero Points: 0
indentation problems with vslick 13.0.1
« on: July 27, 2008, 02:54:43 pm »
I'm trying to work according to Linux kernel standards: indent with tabs & tab length is 8 chars.

Under Tools->Options, I did the following:

Languages->Application Languages->C/C++->Indent:
  • Syntax indent: 8
  • Tabs +8
  • Indent with tab - checked

Languages->Application Languages->C/C++->Adaptive formatting - unchecked

After doing that, if I look at my code, I see that the 1st tab is 5 chars, the 2nd is 4 chars and the 3rd is 6 chars. This behavior started after I moved from v13.0.0 to v13.0.1. Any ideas?

Thanks,
Erez

erezzi

  • Community Member
  • Posts: 15
  • Hero Points: 0
Re: indentation problems with vslick 13.0.1
« Reply #1 on: July 29, 2008, 08:03:24 am »
anyone?

hs2

  • Senior Community Member
  • Posts: 2738
  • Hero Points: 288
Re: indentation problems with vslick 13.0.1
« Reply #2 on: July 29, 2008, 08:24:33 am »
Did you also check/set 'Document>Tabs: 1 9' ? But it should be set according to your language setup...
Be aware that there is also an 'ANSI-C' language mode which could be setup differently.
You can verify and configure the language/document mode in use directly using the 'Document' menu.
Good luck,
HS2
« Last Edit: July 29, 2008, 08:28:33 am by hs2 »

erezzi

  • Community Member
  • Posts: 15
  • Hero Points: 0
Re: indentation problems with vslick 13.0.1
« Reply #3 on: July 29, 2008, 09:43:17 am »
Yes, it is 'Document>Tabs: 1 9'. The same settings exist also for ANSI-C. I think that now I understand more about this problem - it does use 8 chars for tab, but something is bad with the fonts. For example: the word "close" is only 5 chars, but it's as long as 8 spaces. I guess that I need to change something in the font settings. Any idea?

Thanks,
Erez

erezzi

  • Community Member
  • Posts: 15
  • Hero Points: 0
Re: indentation problems with vslick 13.0.1
« Reply #4 on: July 29, 2008, 09:52:32 am »
found it - I switched to "DejaVu Sans Mono" font, and now it looks great.

Erez

hs2

  • Senior Community Member
  • Posts: 2738
  • Hero Points: 288
Re: indentation problems with vslick 13.0.1
« Reply #5 on: July 29, 2008, 10:18:12 am »
You'll find some more good font alternatives here.
HS2