View previous topic :: View next topic |
Author |
Message |
orangeman12 Apprentice
Joined: 19 Dec 2004 Posts: 283 Location: Chair
|
Posted: Sun Jun 11, 2006 7:32 pm Post subject: kwrite C++ Indentation |
|
|
I have been using kwrite as my c++ editor and when ever i use a : kwrite aglins the text all the way to the left even if i am doing some thing like this Code: | cout << "The value of a: " << a; |
so Code: |
void printA ()
{
cout << "The value of a: " << a;
}
|
becomes
Code: |
void printA ()
{
cout << "The value of a: " << a;
}
|
_________________ Orangeman |
|
Back to top |
|
|
TemplarKnight Guru
Joined: 14 Jun 2005 Posts: 311 Location: Greece/patras/
|
Posted: Sun Jun 11, 2006 10:53 pm Post subject: |
|
|
Just go:
tools->Indentation and select the C style. However i dont know how to keep it after kwrite exit |
|
Back to top |
|
|
bergo n00b
Joined: 20 May 2006 Posts: 66 Location: Lodz, Poland
|
Posted: Sun Jun 11, 2006 11:55 pm Post subject: |
|
|
Personnaly I think that kate is much better to do such a things like writing source code - I know this from my experience.
And if You want to apply some coding style to your files consider using indent.
Regards,
B. _________________ where do you want Gentoo today?
btw: feel free to correct my English. |
|
Back to top |
|
|
orangeman12 Apprentice
Joined: 19 Dec 2004 Posts: 283 Location: Chair
|
Posted: Tue Jun 13, 2006 9:41 pm Post subject: |
|
|
I am using the C style indentation which use the colon correctly if doing public: but applies that indentation inside quotes _________________ Orangeman |
|
Back to top |
|
|
bergo n00b
Joined: 20 May 2006 Posts: 66 Location: Lodz, Poland
|
Posted: Tue Jun 13, 2006 9:55 pm Post subject: |
|
|
Indent is a program that can apply various styles to your code: http://www.gnu.org/software/indent/
Regards,
B _________________ where do you want Gentoo today?
btw: feel free to correct my English. |
|
Back to top |
|
|
Devrethman Tux's lil' helper
Joined: 29 Jan 2005 Posts: 141 Location: Phoenix, AZ
|
Posted: Wed Jun 14, 2006 12:08 am Post subject: |
|
|
Just mess with different indentation styles. some of them have wierd quirks like that. I'd also use kate, in my experience it's a lot better, though I personally use emacs. _________________ Signature is out for lunch. Feel free to talk to its empty desk. |
|
Back to top |
|
|
|