Make #defines follow indent

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Make #defines follow indent

969件の閲覧回数
FridgeFreezer
Senior Contributor I

I'm sure there's a config menu somewhere to do this, but there are thousands of config options and I want to liiiiive...

 

When I type #define (something) or #if (something), CW 10 *always* moves it to the far left, regardless of whatever indenting is going on in the code. For example:

 

if(something){     do_stuff;     #ifdef DEBUG_PRINT_STUFF     print_stuff;     #endif}

 

CW will always try and put the #if / #endif on the left. Anyone know how to stop it doing this?

ラベル(1)
タグ(1)
0 件の賞賛
3 返答(返信)

667件の閲覧回数
J2MEJediMaster
Specialist I

1) Choose Project > Properties.

2) In the Properties window that appears, expand the C/C++ General element and choose Code Style.

3) Checkmark the Enable project specific settings option.

4) Use the drop down menu to look at the various code styles.

5) Pick the style that closely matches yours. Click the Edit button.

A Profile window appears, with a lot of options.

---Tom

0 件の賞賛

667件の閲覧回数
FridgeFreezer
Senior Contributor I

Tom - I've already found & "fixed" that to my tastes, but there is nothing I can see in there that changes the way indentation behaves with #defines etc., they barely get a mention in either the config or example code window.

0 件の賞賛

667件の閲覧回数
FridgeFreezer
Senior Contributor I

I guess I'll take that as a "no" then...

 

So what now, do I file a ticket or something or just go away and stop bothering people?

 

0 件の賞賛