Tool/software: TI C/C++ Compiler
line 275 is the default setting, but I want parenthesis to be aligned.
Can this setting be changed?
Thanks
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI C/C++ Compiler
line 275 is the default setting, but I want parenthesis to be aligned.
Can this setting be changed?
Thanks
As far as the compiler is concerned, you can use spacing as you see fit.
Andy Lin94 said:Can this setting be changed?
I'm sure it can. The details depend on your editor. Do you use CCS to edit your code?
I want to point out a problem I see in your code. Because the precedence of addition (+) is higher than the precedence if right shift (>>), this is how that line is evaluated ...
temp = (*p_fileList)->IP[0] >>
(24 + (*p_fileList)->IP[1]) >>
(16 + (*p_fileList)->IP[2]) >> 8;
Very confusing. You need to add () around the shift operations.
Thanks and regards,
-George
you can use spacing as you see fit
Yes, but using space is much more troublesome compared to just pressing tab once(Although I read an article which says programmers who prefer space make more money).
Do you use CCS to edit your code?
Yes.
I want this:
When I press enter(I'm at line 274), cursor goes to right place(aligning to whatever I like). That's why I hope this feature can be set, otherwise I need to press backspace and then press space space.