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

Add short namespace snippet (.NET 6) #4948

Merged
merged 3 commits into from
Dec 15, 2021

Conversation

MRmlik12
Copy link
Contributor

When C# 10 released, new cleaner way to implement namespace was added. To activate this snippet type snamespace and press enter.

Copy link
Member

@JoeRobich JoeRobich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MRmlik12 Thanks for contributing this snippet. Just a few suggestions.

"body": [
"namespace ${1:Name};"
],
"description": "Short namespace (.NET 6)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"description": "Short namespace (.NET 6)"
"description": "File-scoped namespace"

@@ -302,6 +302,13 @@
],
"description": "Namespace"
},
"ShortNamespace": {
"prefix": "snamespace",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should go with either "fsnamespace" or "fsn". What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, it was great idea. I change it

@JoeRobich JoeRobich merged commit efc6a1f into dotnet:master Dec 15, 2021
@MRmlik12 MRmlik12 deleted the feature/short-namespace-snippet branch April 10, 2022 11:34
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

Successfully merging this pull request may close these issues.

2 participants