Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Indentation when coding/pasting

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
Koolski Posted - Jun 04 2010 : 11:16:02 AM
My coding style is as below:

if (TrueCondition)
  {
    Success = DoSomething();
    ...
  }
else
  {
    DoSomethingElse();
  }

How do I:
1) Get the cursor to automatically indent on the next line after a "begin" curly brace.
2) When I paste (carefully formatted code), the indentation is being lost between the "begin" left curly brace and the following lines of code. Here's an example:

if (TrueCondition)
  {
  Success = DoSomething();
  ...
  }
else
  {
  DoSomethingElse();
  }

Is there a way within Visual Assist to change these behaviors?
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Jun 04 2010 : 3:48:00 PM
Point1: What do you mean by "automatically indent on the next line"? I got the right indentation after I press enter, like

void test()
  {|

after enter:

void test()
  {
    |

Point 2: You can turn off auto-formatting on paste:

VA Options -> Advanced -> Correction -> Format after paste

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