Resharper File Template - Extract part of the current file name -


i'm trying create "handler" file template when enter name of "getblogrequesthandler" following generated:

public class getblogrequesthandler : ihandle<getblogrequest, getblogresponse> {  } 

the problem given following template

public class %variable%requesthandler : ihandle<%variable%request, %variable%response> {  } 

i want able set macro %variable% "current file name without extension", without requesthandler part.

is possible, or there workarounds ?

by default it's not possible delete part of macro variable, can create custom macro desired functionality. check link more information:

http://blogs.jetbrains.com/dotnet/2010/10/templates-galore-extending-functionality-with-macros/


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -