SlowCoder Asked:2022-08-10 16:11:57 +0000 UTC2022-08-10 16:11:57 +0000 UTC 2022-08-10 16:11:57 +0000 UTC 滚动浏览 VS 代码中的值,就像在 Firefox 代码检查器中一样 772 在 VS 代码中是否可以在按住向上或向下箭头时像在 Firefox 中那样实现滚动值? visual-studio-code firefox 1 个回答 Voted Best Answer Dmitry 2022-08-10T16:57:48Z2022-08-10T16:57:48Z 你可以使用Emmet配置 打开Command Palette, Ctrl+ Shift+P 进入Preferences: Open Keyboard Shortcuts (JSON) 在打开的 JSON 文件中,写入,例如 { "key": "ctrl+up", "command": "editor.emmet.action.incrementNumberByOneTenth", "when": "editorTextFocus" } 现在,当关注文本并单击Ctrl+组合↑时,该值将增加0.1. 对于相同的动作,但要减小值,添加 { "key": "ctrl+down", "command": "editor.emmet.action.decrementNumberByOneTenth", "when": "editorTextFocus" } 要设置放大/缩小10,请使用以下参数 editor.emmet.action.decrementNumberByTen editor.emmet.action.incrementNumberByTen 要设置放大/缩小1,请使用以下参数 editor.emmet.action.decrementNumberByOne editor.emmet.action.incrementNumberByOne UPD 我将仅为文件添加使用设置css(示例)。为键值添加"when"条件,这将只适用于带有扩展名的样式文件css(这里您可以根据需要使用其他扩展名,或者编写带有逻辑的条件ИЛИ) { "key": "ctrl+down", "command": "editor.emmet.action.decrementNumberByOneTenth", "when": "editorTextFocus && editorLangId == css" } 该设置允许您避免与为各种文件类型重新定义热键发生冲突。另外,以这种方式更改数值的能力与整个环境无关VSCode
你可以使用
Emmet配置打开
Command Palette, Ctrl+ Shift+P进入
Preferences: Open Keyboard Shortcuts (JSON)在打开的 JSON 文件中,写入,例如
现在,当关注文本并单击Ctrl+组合↑时,该值将增加
0.1.对于相同的动作,但要减小值,添加
要设置放大/缩小
10,请使用以下参数editor.emmet.action.decrementNumberByTeneditor.emmet.action.incrementNumberByTen要设置放大/缩小
1,请使用以下参数editor.emmet.action.decrementNumberByOneeditor.emmet.action.incrementNumberByOneUPD
我将仅为文件添加使用设置
css(示例)。为键值添加"when"条件,这将只适用于带有扩展名的样式文件css(这里您可以根据需要使用其他扩展名,或者编写带有逻辑的条件ИЛИ)该设置允许您避免与为各种文件类型重新定义热键发生冲突。另外,以这种方式更改数值的能力与整个环境无关
VSCode