TemplateStudio icon indicating copy to clipboard operation
TemplateStudio copied to clipboard

Allow any valid name for items

Open mrlacey opened this issue 8 years ago • 4 comments

We currently enforce entered item names to start with a character "a-zA-Z" this is much more restrictive than are actually valid in C#. We should allow anything that's valid. While doing this for completion is nice, this is important for anyone using a language that requires Unicode characters, not just ASCII. As a temporary measure, the error message should be improved. "Only alphanumeric and '-' characters are allowed" isn't strictly true.

mrlacey avatar May 12 '17 07:05 mrlacey

Great idea but we need to know how VS actually does this then. Example is a - changes to _.

Class-1.cs becomes Class_1.

Also how does this possibly affect our generation ability for post processing

crutkas avatar May 13 '17 15:05 crutkas

this seems an easy win. @sibille thoughts for 3.0? we can ping the VS team here.

crutkas avatar Oct 02 '18 17:10 crutkas

Ok for 3.0, but we need the insights from vs on what is allowed and what transformations are applied

sibille avatar Oct 02 '18 19:10 sibille

ask made

crutkas avatar Oct 02 '18 22:10 crutkas