Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Closing } not working correctly

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
SeanTownsend Posted - Dec 22 2009 : 09:22:10 AM
Does anyone else have the same problem i am having?

I have ticked the Insert () and closing })]'" etc box in the Visual Assist X Options and selected Closing brace is inserted on the next line, but i am always getting the closing brace on the same line. In fact it doesn't matter which option i select i always get it on the same line.

I am using Version 10.5.1738.0 built 2009.10.01

moved to the correct section by feline
4   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Dec 23 2009 : 2:27:59 PM
I am seeing the same effect here. Thank you for the clear description:

case=25598

This is a feature request, and developers will consider it.
This feature works when you insert { to an empty line:

if ()
{

I am not sure if it is always good to do it when you insert it after some text, but in C/C++ { is almost always used for defining blocks. Exceptions can be when defining values for fixed arrays and defines (macros) where you may want to write the expression into one line.

If you press enter after the closing bracket inserted, you will get the expected result:

if (1) {|}

<enter>

if (1) {
   |
}
SeanTownsend Posted - Dec 23 2009 : 08:21:06 AM
Typing :-
if() {

Results in :-
if() {}

When i would expect to get :-
if() {
}


I have tried this on my colleagues workstations who have the same setup and they also see this behaviour.
SeanTownsend Posted - Dec 23 2009 : 08:06:55 AM
I am using :-
Microsoft Development Environment 2003 Version 7.1.3088
Microsoft .NET framework 1.1


Installed products :-
Microsoft Visual C++ .NET 69459-005-5221821-18567
Visual Assist X


Running on:-
Microsoft Windows XP Professional (SP3 Build 2600)
feline Posted - Dec 22 2009 : 11:24:35 AM
Which IDE and programming language are you using?

Do you have any other IDE plugin's installed?

I am not sure why this is failing for you, it works as expected for me.

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