Swap-Words简介开发此插件的初衷是实现 "快速交换算式两边的式子, 而符号留在中间" 的功能, 避免总是需要两次剪切粘贴+后续调整空格的麻烦; 采用了 "交换首尾单词" 的简单逻辑来实现; 使用方式鼠标:
键盘:
keybindings.json
使用示例使用空白字符 (空格,制表符,换行符) 区分单词:
如果文本中只含一个单词, 则交换首尾字符;
选择 "Plus" 模式时, 会支持一些额外的分隔符:
目前支持的分隔符已全部在此列出:
IntroductionThis extension was created to quickly swap the two sides of an expression while keeping separators in the middle, so you do not need repeated cut-paste and manual spacing fixes. It is implemented with a simple "swap head and tail words" strategy. UsageMouse:
Keyboard:
keybindings.json
ExamplesWords can be split by whitespace (space, tab, newline):
If the selected text contains only one word, the first and last characters are swapped:
When "Plus" mode is selected, additional separators are supported:
All currently supported separators are listed below:
开发者说明
|