Home Dashboard Directory Help
Search

Allow custom code snippet functions by Mr. Andersen


Status: 

Closed
 as Won't Fix Help for as Won't Fix


4
0
Sign in
to vote
Type: Suggestion
ID: 523601
Opened: 1/7/2010 12:51:40 AM
Access Restriction: Public
0
Workaround(s)
view

Description

Inside code snippets it is possible to use one of the following functions: "GenerateSwitchCases, ListVariablesOfType, ListEnumVariables, ClassName, SimpleTypeName". Unfortunately it is not possible to create your own functions, which restricts the use of code snippets.

I would like to be able to create my own function callable from code snippets.

A similar request was made here, for Visual Studio 2005:
http://social.msdn.microsoft.com/forums/en-US/vsx/thread/cab105c7-e9ce-4f63-8e8d-769234511a8e

Unfortunately the Visual Studio team did not have time to implement the feature in VS2005 and it seems there was still not time to implement it in 2008.
Details
Sign in to post a comment.
Posted by Mike Goatly on 6/24/2011 at 3:42 AM
+1 for this feature - snippets would be so much more powerful if we were able to consume our own custom functions within them.
Posted by Microsoft on 1/8/2010 at 6:06 PM
Hello Mr. Andersen,

Thank you for logging this suggestion. Although I understand this suggestion has been made for previous versions of Visual Studio as well, VS 2010 RTM is rapidly approaching we're unfortunately past the point of adding new functionality for this release. However, we agree that this type of snippet functionality would be useful, and I've added your suggestion to our list of ideas to revisit for the next version of Visual Studio.

Thanks for using Visual Studio and sending your feedback!

Brittany Behrens
Program Manager, VS Platform
http://blogs.msdn.com/visualstudio
Posted by Microsoft on 1/7/2010 at 10:54 PM
Thank you for your feedback, We are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.