Sublime Text-使第一个字符大写的命令 [英] Sublime Text - command to make first character uppercase

查看:345
本文介绍了Sublime Text-使第一个字符大写的命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

upper_caselower_case命令:

{ "keys": ["ctrl+k", "ctrl+u"], "command": "upper_case" },
{ "keys": ["ctrl+k", "ctrl+l"], "command": "lower_case" },

我正在搜索命令以大写字符串的首字母,可以将其分配给自定义快捷方式.

I'm searching for command to capitalize the first letter of string, which can be assigned to custom shortcut.

推荐答案

Edit -> Convert Case 下是Title Case选项.以下按键绑定应该起作用:

Under Edit -> Convert Case is the Title Case option. The following key binding should work:

{ "keys": ["ctrl+k", "ctrl+t"], "command": "title_case" }

将此添加到自定义键盘映射中,它将覆盖 Ctrl K Ctrl T -fold_tag_attributes.或者,您可以使用

Add this to your custom keymap, and it will override the default command for CtrlK,CtrlT - fold_tag_attributes. Alternatively, you can use

{ "keys": ["ctrl+k", "ctrl+i"], "command": "title_case" }

未分配给默认Sublime键图中的任何内容.

which is not assigned to anything in the default Sublime keymap.

如果您对其他类型的转换感兴趣,请查看 Case Conversion 插件在包控制上.它会安装snake_casecamelCasePascalCasedot.casedash-case的命令,以及其他一些实用程序,例如使用斜杠分隔单词的函数.

If you're interested in other types of conversions, check out the Case Conversion plugin on Package Control. It installs commands for snake_case, camelCase, PascalCase, dot.case, and dash-case, along with a few other utilities, such as a function to separate words with slashes.

这篇关于Sublime Text-使第一个字符大写的命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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