记事本++:通过快捷方式将首字母大写吗? [英] Notepad++: Capitalize first letter by Shortcut?

查看:460
本文介绍了记事本++:通过快捷方式将首字母大写吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有大量的单词列表(txt文件中一行中的每个单词),并且某些单词需要手动大写(例如,用手),所以我一直在寻找notepad ++中是否有快捷方式(我编辑器当前)以自动将一行的首字母大写,但找不到一个.没有吗?如果不是,您是否可以建议我使用其他Windows程序通过一个简单的快捷方式来快速完成此操作(因此我可以使用向下箭头键并在需要时在特定单词上使用该快捷方式)? 非常感谢

I've got a huge list of words (every single word in one line in a txt file) and certain words need to get capitalized manually (e.g. by hand), so I was looking if there's a shortcut in notepad++ (my editor currently) to automatically capitalize the first letter of a line but couldnt find one. Is there none? If not, can you advise me an alternative windows program to quickly do this by using a simple shortcut (so I can go through with the arrow-down key and use the shortcut whenever needed on a specific word)? thanks a lot

推荐答案

如果首字母是拉丁字符,则可以轻松完成此操作.但是此方法不适用于非拉丁字符(例如西里尔字母).只需按 Ctrl + F ,启用正则表达式"复选框,然后搜索

This can be easily done if the first letters are latin characters. But this method does not work with non-latin (for example cyrillic) characters. Just press Ctrl+F, enable "Regular Expression" checkbox, and search for

^(.)

替换为(全部替换)

\u\1

.匹配换行符"复选框必须取消选中

". matches newline" checkbox has to be unchecked

这篇关于记事本++:通过快捷方式将首字母大写吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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