una saltos salto quitar linea hacer bajar asp c# visual-studio visual-studio-2015 code-snippets

saltos - salto de linea richtextbox c#



El fragmento inserta una nueva lĂ­nea adicional en VS2015 (1)

Puede evitar la nueva línea anterior colocando $ end $ en algún lugar de su fragmento de texto. Ejemplo:

<![CDATA[$FieldName$ = fields.add($FieldName$, "$FieldName$");$end$]]>

Creé un fragmento personalizado para usar en Visual Studio. En VS2013, funcionó como se esperaba, pero desde su uso en VS2015 (Community Edition) ha estado insertando una nueva línea adicional antes del código (justo cuando presiono tab / enter la segunda vez).

Esto parece ser solo un problema con el fragmento personalizado (los incorporados funcionan bien). Alguien sabe lo que podría estar causando esto? Es muy molesto.

Como nota al margen, esto solo ocurre si estoy activando el fragmento en una línea de código vacía. Si lo hago después del código existente, la nueva línea no se inserta. Lamentablemente, el fragmento es una afirmación, por lo que esto no ayuda mucho.

Aquí está el fragmento, copiado casi en su totalidad de la muestra VS:

<?xml version="1.0" encoding="utf-8" ?> <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/CodeSnippet"> <CodeSnippet Format="1.0.0"> <!-- The header contains information describing the snippet. --> <Header> <!-- The Title of the snippet, this will be shown in the snippets manager. --> <Title>Insert Field Add</Title> <!-- The description of the snippet. --> <Description>Inserts a basic field add for a DataObject</Description> <!-- The author of the snippet. --> <Author>Thomas Price</Author> <!-- The set of characters that must be keyed in to insert the snippet. --> <Shortcut>fadd</Shortcut> <!-- The set of snippet types we''re dealing with - either Expansion or --> <SnippetTypes> <SnippetType>Expansion</SnippetType> </SnippetTypes> </Header> <!-- Now we have the snippet itself. --> <Snippet> <!-- Create any declarations that we use in the snippet. --> <Declarations> <Literal> <ID>FieldName</ID> <ToolTip>Enter the field name</ToolTip> <Default>field</Default> </Literal> </Declarations> <!-- Sepecify the code language and the actual snippet content. --> <Code Language="CSharp" Kind="any"> <![CDATA[$FieldName$ = fields.add($FieldName$, "$FieldName$");]]> </Code> </Snippet> </CodeSnippet>