facebook / facebook/TestSlide

[snippets] Add text block replacements

Aperta
#226 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
easy enhancement
Lingua principale
Python
Stelle
149
Fork
62
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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}.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.