用于选择所有内部标签或向外扩展选择的 VS Code 键绑定? [英] VS Code Keybindings for Select All Inside Tag or Expand selection outwards?

查看:25
本文介绍了用于选择所有内部标签或向外扩展选择的 VS Code 键绑定?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎找不到我要找的东西,也许它还不存在?我安装了 sublime text keymap 扩展,但与 VS Code/Emmet 一起似乎缺少我最喜欢的 sublime 快捷方式之一...

选择所有内部标签/向外扩展选择

ctrl+ctrl+shift+a

解决方案

我猜你是说 Sublime 中的 Expand Selection to Tag 命令?

在 VS Code 中,内置命令 Emmet: Balance (outward) 基本上做了同样的事情.它选择标签的内容,然后逐步包含该标签,并在每次重复时向外工作.

您也可以在首选项中为其创建自定义键绑定,例如

<预><代码>[{"key": "ctrl+shift+a",命令":editor.emmet.action.balanceOut"}]

Cant seem to find what I am looking for and maybe it doesn't exist yet? I have the sublime text keymap extension installed, but that along with VS Code / Emmet seem to be missing one of my all time favorite sublime shortcuts...

Select all inside tags / Expand selection outwards

ctrl+, or ctrl+shift+a

解决方案

I assume you mean the Expand Selection to Tag command in Sublime?

In VS Code the built-in command Emmet: Balance (outward) does basically the same thing. It selects content of a tag and then progressively includes the tag and works outward with each repetition.

You can create a custom keybinding for it as well in the preferences, for example

[
    {
        "key": "ctrl+shift+a",
        "command": "editor.emmet.action.balanceOut"
    }
]

这篇关于用于选择所有内部标签或向外扩展选择的 VS Code 键绑定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆