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

feat: Add C# snippet for quick define AvaloniaProperty and RoutedEvent. #405

Conversation

workgroupengineering
Copy link
Contributor

Add following snippet to C#

Shortcut Description
aap AttachedProperty
adp DirectProperty
asp StyledProperty
are RoutedEvent

immagine

feature

@prashantvc
Copy link
Collaborator

prashantvc commented Oct 18, 2023

This is great, do you want to bring them to VS Code extension too too?
https://github.com/AvaloniaUI/AvaloniaVSCode

Snippet guide:
https://code.visualstudio.com/api/language-extensions/snippet-guide

@workgroupengineering
Copy link
Contributor Author

I have little experience with VS Code, but I'll give it a try

@maxkatz6
Copy link
Member

Rider has most of these snippets with other names:
https://github.com/ForNeVeR/AvaloniaRider/blob/0e7782c498658e8a787b7a0b35fe247a86b5266d/src/extensions/settings/liveTemplates.DotSettings

image
image
image

While I don't have an opinion on which name is better, I think consistency is important here, to avoid confusion between IDEs.

@workgroupengineering
Copy link
Contributor Author

I aligned the snippet shortcuts to Raider, but they don't seem like shortcuts to me 😄.

@Takoooooo Takoooooo enabled auto-merge November 3, 2023 12:42
@Takoooooo Takoooooo merged commit 25732f2 into AvaloniaUI:master Nov 3, 2023
@workgroupengineering workgroupengineering deleted the features/Intellisense/Snippet branch November 3, 2023 13:14
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.

4 participants