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

[snippets] Add text block replacements #226

Open
david-caro opened this issue Aug 20, 2020 · 0 comments
Open

[snippets] Add text block replacements #226

david-caro opened this issue Aug 20, 2020 · 0 comments
Labels
easy enhancement New feature or request

Comments

@david-caro
Copy link
Contributor

It would be nice to have some snippets to help refactor class-based tests to dsl-based tests, using text block selection.

From #223:

It may make sense to use the TM_SELECTED_TEXT fragment in things like the snippet for creating an example. Someone might be porting an existing block of code, and if they've selected some text - Ctrl-Shift-P, Insert Snippet, arrow key to relevant snippet - will let them just wrap the selection. It takes a default, so you can do ${TM_SELECTED_TEXT:default_if_no_selection}.

@david-caro david-caro added enhancement New feature or request easy labels Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant