Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 suspicious indentation warning

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
jolly_x Posted - Mar 02 2012 : 08:42:32 AM
It would be useful if the following indentation will be somehow highlighted (c/c++ example):
--------
if (condition)
statement1;
statement2;
statement3;
--------

note the missing braces. One can be easily confused that statement2 is conditioned.


2   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Mar 02 2012 : 11:07:43 AM
Code indenting style is a very personal thing, and not something we plan to get involved with in detail.

For situations like this, you could select the entire file and use the IDE command:

IDE Edit menu -> Advanced -> Format Selection

which will apply the IDE's code formatting to the file, and will correct this indenting.
jolly_x Posted - Mar 02 2012 : 08:45:16 AM

if (condition)
    statement1;
    statement2;
statement3;

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000