Consider the code snippet declaration of SQL Select statement,
public CodeSnippet SelectColumn(){
//Select * from <TableName>
var snippet = new CodeSnippet(){
Title = "SELECT",
Tag = "SELECT",
Shortcut= "SELECT"
};
snippet.CodeText = "SELECT * FROM $<TableName>$";
snippet.Declarations.Add(new CodeSnippetLiteralDeclaration() { Id = "<TableName>", DefaultText = "<TableName>" });
return snippet;
}
for eg Select Name,ID,Phone from TableName;
I dont know how many Columns the user would type, therefore I cant hardcode Literal in the CodeText and also can't declare these literals in the snippet.
Is there a way to achive this behaviour where the user can enter as many column as he want until he presses tab twice to reach TableName Literal?
[Modified 3 years ago]