Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Closing } not working correctly
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

SeanTownsend
New Member

United Kingdom
3 Posts

Posted - Dec 22 2009 :  09:22:10 AM  Show Profile  Reply with Quote
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

Edited by - feline on Dec 22 2009 11:23:45 AM

feline
Whole Tomato Software

United Kingdom
18940 Posts

Posted - Dec 22 2009 :  11:24:35 AM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page

SeanTownsend
New Member

United Kingdom
3 Posts

Posted - Dec 23 2009 :  08:06:55 AM  Show Profile  Reply with Quote
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)
Go to Top of Page

SeanTownsend
New Member

United Kingdom
3 Posts

Posted - Dec 23 2009 :  08:21:06 AM  Show Profile  Reply with Quote
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.

Edited by - SeanTownsend on Dec 23 2009 08:25:59 AM
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 23 2009 :  2:27:59 PM  Show Profile  Reply with Quote
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) {
   |
}

Edited by - accord on Dec 23 2009 2:48:37 PM
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000