介绍:
Visual Studio Code的Camel Case导航扩展为您的编程体验带来全新的便利性。此扩展通过添加四个扩展方法,增强了IDE中左右箭头键的默认行为,实现了camel-case导航的功能。
扩展功能:
重要提示 - 废弃通知:
自VS Code v1.25起,camel-case导航已被内置于VS Code中。要实现与此扩展相同的默认功能,请在您的keybindings.json文件中添加以下命令:
[
{
"key":"ctrl left",
"command": "cursorWordPartLeft"
},
{
"key":"ctrl shift left",
"command": "cursorWordPartLeftSelect"
},
{
"key":"ctrl right",
"command": "cursorWordPartRight"
},
{
"key":"ctrl shift right",
"command": "cursorWordPartRightSelect"
},
]
尽管如此,我仍将继续维护此仓库,但不会再进行功能更新。
安装指南:
您可以从Visual Studio Marketplace安装最新版本的扩展。
或者,打开Visual Studio Code,按下Ctrl P并输入:
ext install camelcasenavigation
切换模式:
版本1.0.2引入了切换模式。通过使用命令camelcasenavigation.toggleCamelMode
,您可以打开或关闭camel-case导航。当关闭camel-case导航时,箭头键将恢复到其默认行为。
此命令当前未映射到默认键绑定。要将其映射到默认键绑定,请在您的keybindings.json文件中添加以下内容:
{
"key": "ctrl shift l",
"command": "maptz.camelcasenavigation.toggleCamelMode"
}
配置选项:
扩展提供了配置设置,允许您开启或关闭功能。在您的vscode设置文件(用户或工作区)中创建符合以下规范的设置:
"maptz.camelcasenavigation": {
"allowToggleMode" : true, //允许使用切换模式
"isCamelNavigationOnByDefault" : true //当切换模式开启时,确定应用程序启动时Camel Navigation是开启(true)还是关闭(false)。
}
源代码:
源代码在GitHub上可获取。
发布说明:
之前的扩展命令名为extension.[command-name],现已更改为camelcasenavigation.[command-name]。
您需要更新任何自定义键盘热键以匹配新的命令名称:
- maptz.camelcasenavigation.deleteCamelLeftCommand
- maptz.camelcasenavigation.deleteCamelRightCommand
- maptz.camelcasenavigation.extendCamelLeftCommand
- maptz.camelcasenavigation.extendCamelRightCommand
- maptz.camelcasenavigation.moveCamelLeftCommand
- maptz.camelcasenavigation.moveCamelRightCommand
- maptz.camelcasenavigation.toggleCamelMode
您的键绑定可能看起来像这样:
{
"key": "ctrl j",
"command": "maptz.camelcasenavigation.deleteCamelRightCommand",
"when": "editorTextFocus"
}
本站所有资源都是由网友投稿发布,或转载各大下载站, 请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则 产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:study_golang@163.com