使用双击进行智能选择,适用于 VS Code。
Smart Clicks VS 代码 使用双击进行智能选择,适用于 VS Code。 GIF 演示
双击代码。
括号对将其与大括号内的内容配对。
▽
(foo, bar)
└──────┘dash- 到标识符。
▽
foo-bar
└─────┘html-attr= 到 HTML 属性。
▽
└─────────┘html-element` └────────────────────┘
#### [`html-tag-pair`](https://github.com/antfu/vscode-smart-clicks/blob/main/src/rules/html-tag-pair.ts)
Open and close tags of a HTML element.
html ▽ └─┘ └─┘
#### [`js-arrow-fn`](https://github.com/antfu/vscode-smart-clicks/blob/main/src/rules/js-arrow-fn.ts)
`=>` to arrow function.
js ▽ (a, b) => a + b └─────────────┘
#### [`js-assign`](https://github.com/antfu/vscode-smart-clicks/blob/main/src/rules/js-assign.ts)
`=` to assignment.
js ▽ const a = [] └──────────┘ class B { ▽ b = 1; └────┘ ▽ ba = () => {}; └────────────┘ }
#### [`js-block`](https://github.com/antfu/vscode-smart-clicks/blob/main/src/rules/js-block.ts)
Blocks like `if`, `for`, `while`, etc. in JavaScript.
js ▽ function () { } └─────────────────┘
js ▽ import { ref } from 'vue' └───────────────────────┘
This rule is _disabled_ by default.
#### [`js-colon`](https://github.com/antfu/vscode-smart-clicks/blob/main/src/rules/js-colon.ts)
`:` to the value.
js ▽ { foo: { bar } } └─────┘
#### [`jsx-tag-pair`](https://github.com/antfu/vscode-smart-clicks/blob/main/src/rules/jsx-tag-pair.ts)
Matches JSX elements' start and end tags.
jsx ▽ (嗨) └───────┘ └───────┘
## Configuration
All the rules are enabled by default. To disable a specific rule, set the rule to `false` in `smartClicks.rules` of your VS Code settings:
jsonc // settin
暂无开放 Issues,或尚未同步最近议题。