2

Are there any "common" text editors or word processors (Notepad, Wordpad, Word etc.) which allow you to invert the case of a string of text easily?

I've always thought there should be a shortcut so you can toggle the case between upper and lower, for example when you're...

sPEEDILY TYPING AWAY LIKE uSAIN bOLT

...but don't notice the dreaded CAPS LOCK is on.
I would rather convert it with a few clicks than type it out again as:

Speedily typing away like Usain Bolt

I keep meaning to write a macro or similar, but it never seems worth the effort at the time.

1
  • 2
    I guess you could call it "common" as its on almost every unix box out there .. vi has the "~" tilda key that performs case change. – FreudianSlip Mar 19 '13 at 16:20
3

With the lightweight Notepad2 or Notepad2-mod, simply select the text you want to fix, then press Ctrl+Alt+U.

notepad2-mod invert case | Notepad2-mod 转换大小写

1
  • Excellent, am yet to explore the Notepad2 features properly! – Widor Mar 20 '13 at 10:31
3

For NotePad++, install the free TextFX plugin using the Plugin Manager, then highlight your text, and select these menu items. Probably a quick macro could assign it to a hot-key.

enter image description here

It seems like you can even more easily highlight your text, right click and select "UPPERCASE":

enter image description here

2
  • 1
    I second you "NealWalters" and add: The OP asked for "invert Upper/Lower", which can be done, in your 1st image, by selecting NOT "UPPER CASE" but, 4 rows lower, "iNVERT cASE". Mon 29 May 2017 20:43:40 +0200 – Michel Merlin May 29 '17 at 18:43
  • Users should NOT be impressed by the warning in "Notepad++ > Plugins > Plugin Manager > Show Plugin Manager > TextFX" about a file being not correctly copied. Ignore the warning, TextFX will install and work fine. Mon 29 May 2017 20:44:10 +0200 – Michel Merlin May 29 '17 at 18:44
2

In Word, if you highlight the text and press Shift+F3 , it should toggle between upper and lower.

3
  • Shift+F3 in Word actually rotates between Initial Letter Case, ALL CAPS CASE and lower case. The button on the ribbon provides even more options. Also, Word of course has AutoCorrect that can deal with accidental use of the Caps Lock. – Karan Mar 19 '13 at 18:34
  • @Karan the rotation only seems to include the initial letter case thing, when the highlighting includes a whole word, though granted that may be most of the time. – barlop Mar 20 '13 at 12:20
  • @Karan yes I agree, and a "single complete highlighted word" would indeed include "a whole word" and thus would involve the initial letter case thing as I mentioned, so no surprises there. – barlop Mar 20 '13 at 19:53
1

LibreOffice has an Auto Correct option "Correct accidental use of cAPS LOCK key". I realize that it is not Word, Notepad, WordPad, but I guess it goes in the etc. category. Probably OpenOffice has that option too. Most likely the editors that you mentioned have similar options too, at least Word should have it, but I don't have Word here, so I can't say.

1
  • You're right, it does indeed - although I now recall turning it off because it kept undoing deliberately capitalised terms! – Widor Mar 19 '13 at 16:30
0

SynWrite (Windows editor similar to Notepad++) has it.

Image of UI

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.