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

Demonstrate how to use text snippets #418

Merged
merged 3 commits into from
Apr 27, 2024

Conversation

mgarstenauer
Copy link
Contributor

@mgarstenauer mgarstenauer commented Apr 27, 2024

This PR adds an Insert Snippet button that inserts a text snippet at the caret position.

The snippets insert the text

public class Name
{
    public Name()
    {
        |
    }
}

where Name is a replaceable text part. When the class name is changed, the constructor name is automatically updated.
When done, the caret is placed inside the constructor body.

This should help newcomers to get started with text snippets.

@danipen danipen merged commit 88625c4 into AvaloniaUI:master Apr 27, 2024
3 checks passed
@mgarstenauer mgarstenauer deleted the demo-insert-snippet branch April 27, 2024 13:57
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