This question is locked. New answers and comments are not allowed.
Is it possible to access the name of the current class and/or method when you are creating an insert template?
For example, I have a template that inserts logging code and gives me a list of choices for the type of log entry (debug, info, error, etc). I would like it to automatically add MethodName(): and then leave the cursor ready for me to enter the relevant log entry text.
For example, I have a template that inserts logging code and gives me a list of choices for the type of log entry (debug, info, error, etc). I would like it to automatically add MethodName(): and then leave the cursor ready for me to enter the relevant log entry text.
5 Answers, 1 is accepted
0
Hello Josh,
Tsviatko Yovtchev
the Telerik team
Rather unfirtunately there is no such template function at the moment. We will be introducing new tamplate functions later during the year but it's hard to commit to a more exact date. So, please, stay tuned.
Regards,Tsviatko Yovtchev
the Telerik team
Browse the videos here>> to help you get started with JustCode
0
Josh
Top achievements
Rank 1
answered on 26 Mar 2013, 05:34 PM
Hello - I was wondering if there was any news on this
0
Hello Josh,
Zdravko
the Telerik team
Thanks for getting back to us.
I regret to say that we have no progress regarding this request so far.
However, I would ask you to post a feature request at our new feedback portal and vote for it.
This way your idea could gather popularity and votes among the community and get closer to implementation.
Thanks.
Zdravko
the Telerik team
0
Chad England
Top achievements
Rank 1
answered on 16 May 2013, 11:54 PM
it is a bummer that this is a limitation, but ever new release JustCode gets better. Currently I use this extension for method snippets
http://visualstudiogallery.msdn.microsoft.com/b08b0375-139e-41d7-af9b-faee50f68392
http://visualstudiogallery.msdn.microsoft.com/b08b0375-139e-41d7-af9b-faee50f68392
0
Hi,
Svetlozar
the Telerik team
We recently added support for getting the member name. Here is an example template definition
Console.WriteLine("$1=GET_MEMBER_NAME()$");
We will also add GET_TYPE_NAME. They will be available in the next internal build.
Svetlozar
the Telerik team