Code Snippets not working


  • I have a code snippet that has been working with previous versions of Visual Studio. But with VS 2015 it no longer works.

    When I type the shortcut I get a message box that says: "The operation cannot be competed. Unspecified error". If I remove the "<Shortcut>" tag, the error message goes away, but the snippet does not expand.

    Here is the code for the snippet:

    <?xml version="1.0" encoding="utf-8" ?>
    <CodeSnippets  xmlns="">
    	<CodeSnippet Format="1.0.0">
    			<Title>Property Notify Change</Title>
    			<Description>Code snippet for property and backing field</Description>
    			<Author>Dan Jurden</Author>
    					<ToolTip>Property description</ToolTip>
    					<ToolTip>Property type</ToolTip>
    					<ToolTip>Property name</ToolTip>
    					<ToolTip>The variable backing this property</ToolTip>
    			<Code Language="CSharp"><![CDATA[/// <summary>
    	/// $desc$
    	/// </summary>
    	public $type$ $property$
    		get { return _$field$;}
    			_$field$ = value;
    	private $type$ _$field$;	

    Any ideas on what is wrong?

    • Edited by Djurden Thursday, April 20, 2017 4:31 PM
    Thursday, April 20, 2017 4:26 PM


All replies

  • Really weird. I just exited and restarted Visual it works! It has not worked the last several weeks!

    Oh's working now!

    Thursday, April 20, 2017 4:55 PM
  • Hi Djurden,

    Glad to know that it works well, thanks for your sharing.

    As you said that it works after you restart the VS, maybe it has a loaded issue for the code Snippets in VS. 

    Anyway, since it works well now, you could mark it as the answer, so we could close this case for you.

    Thank you for your support and co-operation.



    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Friday, April 21, 2017 2:23 AM