AddAnyFile icon indicating copy to clipboard operation
AddAnyFile copied to clipboard

Feature: Create generic files

Open san7hos opened this issue 9 years ago • 2 comments

It would be nice to be able to create generic files directly.

The convention we use is MyClass{T}.cs and the file contains class

public class MyClass<T>
{
}

The class name created now is MyClass{T} which is an incorrect class name. I also understand that other projects have different conventions so there could be a template file.

san7hos avatar Nov 28 '16 11:11 san7hos

I came here looking for the same feature - except we follow the convention of {class name}`{count of type parameters}.{file extension} (e.g. List`1.cs for List<T>). I don't dislike the convention above (quite the opposite), but this does increase complexity.

christophano avatar Feb 21 '17 12:02 christophano

Also I found files named like this (for same example class): MyClass[T].cs MyClass(T).cs

NoofSaeidh avatar Nov 12 '18 11:11 NoofSaeidh