[Owncloud] Coding style
Thomas Tanghus
thomas at tanghus.net
Mon Nov 12 16:02:06 UTC 2012
On Monday 12 November 2012 16:42 Diederik de Haas wrote:
> >
> > KDEs Kate/KDevelop also has some nice tricks for that.
>
> Kool! Care to share them?
> I guess that was really the point I tried to make.
I mostly use Kate standalone. Under Settings->Configure Kate->Editing-
>Indentation set Default indentation style to "C-Style" and "Indent using" to
Tabulators.
When you want to "correct" a file simply select the code you want to reformat
and select Tools->Clean indentation. You will have to manually check that
everything is as it's supposed to be though, but mostly it does a good job.
Ctrl-I and Shift-Ctrl-I indents/unindents the selected code block.
> > I guess the same applies for all projects regardless of the language used.
> > As mentioned PRs are welcomed. Best practice would be to limit them to one
> > class/file as it makes them easier to review.
>
> Ok, will do and thanks for the tip!
> With my (future) PRs, feel free to 'nit-pick' any and all improvements there
> could be made. I'm here to learn :-)
Cool, looking forward to your PRs :-)
--
Med venlig hilsen / Best Regards
Thomas Tanghus
More information about the Owncloud
mailing list