Create CSharp snappiet problem, cannot bring class name

I create a snippet code in Visual Studio 2019 community, I can key in so and tab double to bring the code I defined. But I cannot bring the class name to the snippet code. Could someone help me to solve this problem?

<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>ScriptableObject Unity</Title>
			<Shortcut>so</Shortcut>
			<Description>ScriptableObject Unity 陳述式的程式碼片段</Description>
			<Author>Microsoft Corporation</Author>
			<SnippetTypes>
				<SnippetType>Expansion</SnippetType>
				<SnippetType>SurroundsWith</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Declarations>
				<Literal Editable="false">
					<ID>classname</ID>
					<ToolTip>Class name</ToolTip>
					<Function>ClassName()</Function>
					<Default>ClassNamePlaceholder</Default>
				</Literal>
			</Declarations>
			<Code Language="csharp">
				<![CDATA[[CreateAssetMenu(fileName ="New $classname$",menuName ="$classname$", order =0)]
public class $classname$ : ScriptableObject
{

}]]>
			</Code>
		</Snippet>
	</CodeSnippet>
</CodeSnippets>

I’m not super familiar with creating code snippets in VS Community, but the only thing I can see that might be different is in your Literal declaration for classname

<Literal default="true" Editable="false">

Privacy & Terms