Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 White spaces before and after equals sign etc.

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
Filord Posted - Oct 27 2012 : 06:01:00 AM
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
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Oct 29 2012 : 9:55:54 PM
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.
Filord Posted - Oct 27 2012 : 1:24:18 PM
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.
feline Posted - Oct 27 2012 : 11:30:28 AM
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

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