百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
V

vscode-smart-clicks

> 开发工具
开源

使用双击进行智能选择,适用于 VS Code。

690 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

使用双击进行智能选择,适用于 VS Code。

Smart Clicks VS 代码 使用双击进行智能选择,适用于 VS Code。 GIF 演示

使用方法

双击代码。

规则

括号对

将其与大括号内的内容配对。

javascript
▽
(foo, bar)
 └──────┘

dash

- 到标识符。

css
   ▽
foo-bar
└─────┘

html-attr

= 到 HTML 属性。

xml
          ▽

     └─────────┘

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· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptvscodevscode-extension

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具