A custom code snippet that does not appear before the first "using" statement

This special piece of code used to display when entering CR at the top of the C # Source File in Visual Studio 2013:

 <?xml version="1.0" encoding="utf-8" ?> <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> <CodeSnippet Format="1.0.0"> <Header> <Title>Insert a Copyright notice</Title> <Shortcut>CR</Shortcut> <Description>Code snippet for the Copyright notice comment</Description> <Author>Pierre Arnaud</Author> <SnippetTypes> <SnippetType>Expansion</SnippetType> </SnippetTypes> </Header> <Snippet> <Code Language="csharp"> <![CDATA[// Copyright © 2015, EPSITEC SA, CH-1400 Yverdon-les-Bains, Switzerland$end$]]> </Code> </Snippet> </CodeSnippet> </CodeSnippets> 

In Visual Studio 2015, the CR code snippet does not appear in if I placed the cursor before the first using statement. The only suggestions that come up are two Visual Studio extern and using .

Any idea if I need to update the XML of this snippet so that it works again?

EDIT: I discovered the problem on Microsoft Connect .

+5
source share
1 answer

One work I discovered is to move the cursor to the top of the code file, and then press Ctrl + K, Ctrl + S (surrounding with a snippet label). This causes fragments of code, including copyright, which I have locally. It can be chosen. Not a great solution, but it works until it is fixed.

0
source

Source: https://habr.com/ru/post/1232427/


All Articles