facebook / facebook/TestSlide

[snippets] Add text block replacements

未关闭
#226 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
easy enhancement
主要语言
Python
星标
149
派生
62
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。