Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for context aware class snippets #7

Open
danspark opened this issue Jan 8, 2021 · 1 comment
Open

Support for context aware class snippets #7

danspark opened this issue Jan 8, 2021 · 1 comment

Comments

@danspark
Copy link

danspark commented Jan 8, 2021

I don't know if this is actually possible since I've never developed any extension for vscode, but one thing that I think would be nice is if there was some snippet for scaffolding a class with its namespace already resolved.

Example

I just created a file named "Person.cs" on the "Entities" folder that belongs to the "MyProject.csproj". If I typed the snippet classn, it would generate the following data:

namespace MyProject.Entities
{
    public class Person
    {
        
    }
}

Extras

  • Account for the RootNamespace tag on the .csproj file
@J0rgeSerran0
Copy link
Owner

Thank you @danspark

I think that it is possible.

If I am not wrong, it could be done with TypeScript, but I have to investigate about it and see if it works as you comment.

Thank you very much for your suggestion!

Best regards,

Jorge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants