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
 Is it possible to use own syntax?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Concelect
Starting Member

1 Posts

Posted - Mar 03 2017 :  2:54:00 PM  Show Profile  Reply with Quote
For member variables I usually prefix an underscore and for function parameter names I suffix underscores. Is it possible to teach Visual Assist my own syntax, so code generation automatically uses that style?

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Mar 04 2017 :  07:44:38 AM  Show Profile  Reply with Quote
Where and how are these names being generated? Introduce variable will add a new variable name, but you are prompted for the name, giving you an option to add your preferred prefix / suffix at this stage. Several other refactorings just use the existing variable names.

You have some control over formatting, if the refactoring you are running uses a VA Refactoring Snippet, seen in the VA Snippet editor, with the "Type" filter set to "Refactoring".

Beyond this though, not currently. There are so many different rules that people use, that trying to come up with a useful interface to specify all of them is a significant task.

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