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
相关问题
- Fixing Markdown styling in Notepad++
- VBA Getting date from properties of a text file
- Notepad++ Regex + python script (addition in the r
- QML Keyboard Shortcuts are interfering with Key On
- Regex to find double parenthesis using Notepad++
相关文章
- NSMenuItem KeyEquivalent “ ”(space) bug
- Disabling drag-and-drop of text in Notepad++
- How can I do a non greedy regex query in notepad++
- regular expression to add characters before and af
- Reset bash history search position
- How do I use a shortcut to comment out code automa
- Visual Studio 2012 debug tests keyboard shortcut
- eclipse key bindings everywhere
This will capitalize every first letter of a line. You can modify this method to capitalize under other conditions
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
replace with (Replace All)
". matches newline" checkbox has to be unchecked
Have you tried recording a macro and then assigning it to a shortcut?
e.g. Your replacement could be:
And then navigate to
Macro
→Modify Shortcut/Delete Macro...
in the top menu and assign a shortcut.This is the resulting macro that I extracted from
C:\Users\%USERNAME%\AppData\Roaming\Notepad++\shortcuts.xml
.It uses the shortcut Ctrl + Shift + C
You can do it quick in an unortodox way, but you'll need TotalCommander.
Create new file with a name containing text you want to capitalize. Select this file in TotalCommander. Press Ctrl+M (Multirename Tool). In "Uppercase/Lowercase" dropdown select "First of each word uppercase".
Under Windows. There is a draw back: filename limits to 255 characters if i'm not mistaken. And some special characters will be ommited (slashes, double quote, etc).
Also similar software like Far should work in the same way I think.