vb.net - Visual Studio 2010 insets code snippet code on new line -
assuming want create code snippet tostring(), have created following snippet:
<?xml version="1.0" encoding="utf-8"?> <codesnippets xmlns="http://schemas.microsoft.com/visualstudio/2005/codesnippet"> <codesnippet format="1.0.0"> <header> <title>to string vb</title> <author>john doe</author> <description>shortcut tostring()</description> <shortcut>ts</shortcut> </header> <snippet> <code language="vb"> <![cdata[tostring()]]> </code> </snippet> </codesnippet> </codesnippets>
when write code myobject.ts
, press tab invoke code snippet, visual studio this:
myobject. tostring()
instead of this:
myobject.tostring()
how can keep snippet completion on same line invoked from? came across page mentioned using $end$
mark position cursor should go when snippet inserted, has done nothing me besides including $end$ in snippet.
Comments
Post a Comment