Author Topic: Conforming to Linux kernel style  (Read 601 times)

jakeoshins

  • New Community Member
  • Posts: 2
  • Hero Points: 0
Conforming to Linux kernel style
« on: January 20, 2015, 11:11:34 pm »
I've tried to find this myself, and I've searched pretty hard, but I can't figure out how to get tabs to display as eight characters wide in C/C++.  I would really like to get them to display that way because the Linux kernel style demands that things are formatted that way and I can't easily see whether my code conforms.

Thanks for any response.

hs2

  • Senior Community Member
  • Posts: 2725
  • Hero Points: 281
Re: Conforming to Linux kernel style
« Reply #1 on: January 21, 2015, 12:31:45 am »
Hi Jake,
you can quick change tab spacing of the current file with Document>Tabs and set it to e.g. '+8'. This is also one of the various Tools>Options>Languages (C/C++) settings. Also the Help(>Index) is quite good.
It's been a while when I had to deal with Linux kernel programming but SE was a really great help also with this kind of task.
HS2

PS: I'm curious .. hypervisor work  ;)


jakeoshins

  • New Community Member
  • Posts: 2
  • Hero Points: 0
Re: Conforming to Linux kernel style
« Reply #2 on: January 21, 2015, 05:58:16 am »
Yes, I'm working on Linux drivers for Hyper-V virtual machines.  Thanks for the response.