61

I seem to have accidentally hit a couple hot-keys and my Notepad is now showing text from Right-to-Left.

What was the hot-key combo and what can I do to reverse it back to Left-to-Right?

1
  • Interestingly, for me this random switching occurs when I quickly press Win+Space, RightShift. But not when pressed slowly. This is some kind of notepad bug Feb 13 at 9:13

8 Answers 8

67

Right click anywhere in notepad and uncheck right-to-left reading

6
  • 2
    Wow... I've never noticed that. Just for curiosity, do you know the hot-key equivelent?
    – RLH
    Aug 9, 2011 at 19:17
  • 9
    @RLH It is apparently Right or Left Ctrl+Shift depending on which direction you want it, but it doesn't work for me
    – Greg
    Aug 9, 2011 at 19:30
  • None of the shortcuts described in other answers worked for me in the standard Notepad (not Notepad++) version. You can however use Shift + F10 to open the context (or right-click) menu, then press R (if the operating system is English) or C (for the German version) to switch between the left to right and right to left reading orders. Note, that there are specific keyboards, having an extra key assigned to the context menu, see howtogeek.com/223037/…
    – pholpar
    May 25, 2020 at 19:33
  • @RHL and future readers suffering the same predicament: After a lot of experimenting, I DISCOVERED THE KEY COMBO! I had accidentally hit the Windows 'Menu' key (below right shift key), and then an 'r'... This toggles RTL and LTR typing. [Now I finally know what that mystery key does, too! LOL] I accidentally slipped while typing 'Exercise'; and the 'r' was the first hot 'letter' I happen to hit after the menu had appeared... The OP said Windows "Notepad". I found no key combinations of shift or control that duplicated this issue on "Notepad". Works on "Notepad"; Win 10 and Win 7. Mar 22, 2023 at 5:34
  • 3
    To turn off the Ctrl+RightShift hotkey (so you don't accidentally hit it) on Windows 10 or 11, open the Settings app, go to "Time & language" > "Typing" > "Advanced keyboard settings", click the "Input language hot keys" link, press the "Change Key Sequence..." button, and change "Switch Keyboard Layout" from "Ctrl+Shift" to "Not Assigned" Jan 25 at 21:18
36

Hotkey combo:

  • To write text from Right to Left, try Ctrl + Right Shift.
  • To write text from Left to Right, try Ctrl + Left Shift.

Or simply open Notepad again.

8
  • 13
    What a stupid short-cut, that can be easily hit by accident
    – Paul C
    Apr 28, 2015 at 9:59
  • 1
    You can prevent accidents with AutoHotkey: just add this line to a .ahk file and run it: ^RShift::return. This will completely disable the hotkey in all programs including Notepad.
    – Gogowitsch
    Jun 4, 2015 at 19:30
  • 6
    Okay I've found what seems to work for me. Instead of swallowing ctrl + RShift and that messing up select-word shortcut, map RShift to be LShift so I never get RTL by mistake. RShift::LShift
    – Daryn
    Mar 23, 2017 at 19:22
  • 1
    this really should be the answer to this specific question. Oct 18, 2018 at 16:49
  • 1
    Or, if possible, get a new editor and never open Notepad again. :)
    – Patrick
    Mar 19 at 20:27
7

Try the following shortcuts:

Ctrl+Alt+R

Ctrl+Alt+L

6
  • 6
    Those do nothing for me Oct 9, 2012 at 15:13
  • 1
    These work in Notepad++ for changing LTR and RTL, maybe in other windows apps too?
    – n611x007
    Apr 26, 2013 at 15:47
  • 2
    Works for me in Notepad++. None of the other answers worked...
    – Meir
    Sep 2, 2013 at 9:15
  • 1
    Hooray for standards!
    – Liz
    Jan 27, 2014 at 19:15
  • 1
    It works in Windows 10 too.
    – cdlvcdlv
    Aug 17, 2019 at 11:26
4

For Notepad++ users, use the "View" menu (when shortcuts fail due to some conflicts):

enter image description here

2
  • 1
    The original poster asked about Notepad. I assume this screenshot is from Notepad++, not from the version built-in in Windows. There are no such options in the menu of the standard version.
    – pholpar
    May 25, 2020 at 19:02
  • 1
    Correct, updated the answer. As I also came up this post when searching for Notepad++, others might benefit from my answer as well.
    – P-S
    May 29, 2020 at 7:46
1

As some may have been confused by the "specificity" of the Answer regarding the French version of Windows, and in keeping with the OP's actual question (and circumstance) the answer is as follows:

"Accidentally" 'hitting a couple of Hot Keys' causing the text to be Right Justified in Windows 7 Notepad was accomplished not by a "Hot Key" combination, (as some had suggested as CTRL-RShift or CTRL-Alt-R) but instead by using the Keyboard EQUIVALENT of [Right Click] & [Check]ing "Right to left Reading order".

This "accidental" keyboard sequence was [Menu Key] then [R].

To set things aright (using the keyboard, for the old-school typists), the sequence must repeated, i.e. [Menu Key] then [R].

To put out any "flames", let me reiterate; These steps are identical to the "Mouse-Centric" answer above, but in keeping with the OP's stated cause & problem.

0

To toggle between right and left text :

  1. strike the "menu" key (beside the space bar) - so you can see many options, with shortcuts underlined, like "Lecture de droite à gauche" in French

  2. strike the "L" key - in french version of Notepad - or an other letter if you have english or other language version

4
  • So you have translated accepted answer to keyboard? I think it should be a comment.
    – gronostaj
    Aug 8, 2014 at 12:27
  • I have a french version of win7, who is released with a french version of Notepad. Shortly, in the french version of Notepad, strike successively "menu" key and "L" key to toggle between right and left text. You can easily find what is the second key to strike if you have an english version, isn't ?
    – Brett.fr
    Aug 8, 2014 at 16:22
  • Yeah, I get what you mean, but it's basically the accepted answer with keypresses instead of clicks. Everyone who can use a keyboard efficiently would figure it out from the accepted answer. I don't think it's enough to post a separate answer.
    – gronostaj
    Aug 8, 2014 at 16:58
  • Sorry if my response was obvious for all.
    – Brett.fr
    Aug 8, 2014 at 20:24
0

I think I found what the hotkey is to change the alignment on Notepad, and it's quite weird. I am on Windows 11 with default Notepad, UK keyboard.

CTRL + LSHIFT (i.e. either left or right control key and Left Shift) causes alignment left-to-right

CTRL + RSHIFT (i.e. either left or right control key and Right Shift) causes alignment right-to-left

Instead of using hotkeys, you can also just simply right click in Notepad and toggle Right-to-Left reading order

As another user suggested, you can use AHK to disable this annoying shortcut. Alternatively, Windows PowerToys also has a feature now to map hotkeys but might not be as good.

0

To prevent this from ever happening again: Install PowerToys then configure the Keyboard Manager remapping the RShift to the LShift.

New contributor
ElderGod is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
1
  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    2 days ago

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .