White spaces before and after equality, brackets and others

I am using Visual studio 2012 and the Visual assist X ver plugin. 1916. I have two questions.

1) When I write an equal sign ( = ), I want to automatically insert spaces before and after the sign (I should always insert a space on the keyboard ...). Is it possible?

Example:

 int variable=167; -> int variable = 167; 

or

 "=" -> " = " 

2) I want to automatically insert spaces before and after brackets and before and after commas. Is it possible?

Example:

 void fun(int param1,int param2); -> void fun ( int param1, int param2 ); 
+7
source share
1 answer

VASSISTX → Tools → Edit VA Fragments. Add a new one with the label "=" (without "), and in the body write " = " (without the sign" "). The same goes for your other requirements, the rule is simple: in the label, write the character that you want to identify when entering and in body that you really want to print.

0
source

All Articles