Cursor de fragmentos de código de Visual Studio
En Visual Studio cuando inserta un fragmento y termina de insertar literales, el cursor salta al principio del fragmento.
Ahora me gustaría decirle a visual studio dónde debe ir el cursor después. He buscado en la web y en realidad tengo pocas esperanzas de que esto sea posible.
Para ilustrar, supongamos que tengo este fragmento:
<Code Language="csharp" Kind="method body" Delimiter="$"><![CDATA[this.SyncThreadRunInvoke(() =>
{
});]]>
</Code>
Luego después de insertar:
this.SyncThreadRunInvoke(() =>
{
[]<- I want the cursor here
});
48
Author: Tim Murphy, 2010-01-20
1 answers
Utilice la variable end end as como se muestra en el siguiente fragmento de código "if" para c#.
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>if</Title>
<Shortcut>if</Shortcut>
<Description>Code snippet for if statement</Description>
<Author>Microsoft Corporation</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
<SnippetType>SurroundsWith</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>expression</ID>
<ToolTip>Expression to evaluate</ToolTip>
<Default>true</Default>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[if ($expression$)
{
$selected$ $end$
}]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
75
Author: Henrik Söderlund,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-12-01 13:49:53
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-12-01 13:49:53