在不替换 Webstorm 中的选择的情况下在选择周围插入大括号
Inserting braces around selection without replacing the selection in Webstorm
在编辑 JavaScript 时,我想 select 代码中的一个短语并用大括号括起来。
例如,在 Sublime Text 中,默认行为是当我用 piece_of_text
selected 按下 [
键时,它会转换为 [piece_of_text]
。然而在 Webstorm 中它变成 []
.
如何更改此行为?
请确保 Surround selection on typing quote or brace
选项在 Settings/Preferences | Editor | General | Smart Keys
中启用。
在编辑 JavaScript 时,我想 select 代码中的一个短语并用大括号括起来。
例如,在 Sublime Text 中,默认行为是当我用 piece_of_text
selected 按下 [
键时,它会转换为 [piece_of_text]
。然而在 Webstorm 中它变成 []
.
如何更改此行为?
请确保 Surround selection on typing quote or brace
选项在 Settings/Preferences | Editor | General | Smart Keys
中启用。