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
 White spaces before and after equals sign etc.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Filord
New Member

2 Posts

Posted - Oct 27 2012 :  06:01:00 AM  Show Profile  Reply with Quote
Hi,

I use Visual studio 2012 and plugin Visual assist X ver. 1916. I have two questions.
1) When I write equal sign(=) I want automatic insert white spaces before and after equal sign.(I must always insert by space on keyboard :((( ) Is it possible by auto?

example.
"int variable=167;" -> "int variable = 167;" or "=" -> " = "

2) I want automatic insert white space before and after brackets nad before and after commas. Is it possible by auto?
example.
"void fun(int param1,int param2);" -> "void fun ( int param1, int param2 );"

P.S Sorry for my english

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Oct 27 2012 :  11:30:28 AM  Show Profile  Reply with Quote
Visual Assist X can help with some of this. Turn On:

VA Options -> Advanced -> Correction -> insert () and closing } ) ] ' "

and set:

VA Options -> Advanced -> Correction -> and put 1 spaces between method name and ()

If you are not getting the spaces around the brackets you want when using Extract Method, Create Implementation and Move Implementation to Source File then you can edit the VA Snippets "Refactor Create Implementation" and "Refactor Extract Method".

For more control over this you need a plugin for this. You could try:

http://www.profactor.co.uk/stylemanager.php

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

Filord
New Member

2 Posts

Posted - Oct 27 2012 :  1:24:18 PM  Show Profile  Reply with Quote
thank you for answer...but StyleManage dont want install because its for only up to VS2010 version.
So I understand you that Visual assist X can't help me with this problem. I must always use space on keyboard for space before and after equal sign, commas and brackets. That's a pity(( I need software who this action can do automatically.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Oct 29 2012 :  9:55:54 PM  Show Profile  Reply with Quote
A quick search has produced this extension, which might be able to help, depending on exactly what it can do:

http://visualstudiogallery.msdn.microsoft.com/7179e851-a263-44b7-a177-1d31e33c84fd

Alternatively you could use this command line code formatting tool:

http://sourceforge.net/projects/gcgreatcode/

which will work regardless of the IDE since its not an extension.

zen is the art of being at one with the two'ness
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