Author Topic: auto formatting  (Read 2938 times)

namrog84

  • Guest
auto formatting
« on: August 30, 2013, 04:34:55 pm »
So with the default plugin "source code formatter (Astyle)"
It does fix a few issues in the code, specifically and mostly indenting

However there are other things I would like it to fix.
for(int i= 0; i<10; i++){
to become for example
for(int i = 0; i < 10; i++){

or something, notice the spaces around i=0 and i<10

Is there a setting or a plugin that can do this?  I have gotten used to do this from another IDE I am coming from and trying to get this functionality here as well.

Thanks in advance!


edit: I just found it in settings > editor > source formatter > Formatting

My next question,  how do i set it up to automatically call this plugin either always, or whenever I return/make a new line or something?
Or at the very least set a hotkey to it, instead of going to dropdown?
double edit:
Also found in settings > editor >keyboard shortcuts!
:D
Thanks!

« Last Edit: August 30, 2013, 04:40:14 pm by namrog84 »