CSharpToTypeScript icon indicating copy to clipboard operation
CSharpToTypeScript copied to clipboard

Using variable name as TypeScript comment

Open ThibaudMZN opened this issue 4 years ago • 0 comments

I don't know if that would be a complicated feature to add (I'll be glad to help but I know nothing about Extension's programming).

My idea would be to add Variables name as a comment name in TypeScript (so it can be viewed with Intellisense), and it could be toggled from extension's preference.

Simple Example :

Indicator.cs

    public class Indicator
    {
        [JsonProperty("n")]
        public string Name { get; set; }
    }

Indicator.ts

export interface Indicator {
    /** Name */
    n: string;
}

ThibaudMZN avatar Feb 12 '21 11:02 ThibaudMZN