Align text left or right in Notepad++

Turn off DirectWrite in Notepad++ then use keyboard shortcuts to align selected text to the left or right.

What the video covers

Notepad++ on Windows — change rendering mode and use built-in alignment shortcuts to move text to the left or right.

Watch the video on YouTube

Step-by-step instructions

  1. Open Notepad++ Preferences
    In the Notepad++ window open Settings, then choose Preferences.
  2. Change rendering mode away from DirectWrite
    In Preferences go to Miscellaneous, find the Rendering mode (or equivalent) list and select any option that is not DirectWrite (for example GDI).
  3. Restart Notepad++ if needed
    If you changed the rendering mode while the app was running, close and reopen Notepad++ to ensure the change takes effect.
  4. Select the text you want to align
    Highlight the line(s) or block of text you want to move to the left or right.
  5. Use the alignment shortcuts
    Press Ctrl+Alt+L to align the selected text to the left. Press Ctrl+Alt+R to align the selected text to the right.

Watch the video

Video thumbnail for Align text left or right in Notepad++ Play tutorial

Watch on YouTube

Why it matters

Notepad++ normally doesn't change text alignment in some rendering modes. If alignment appears incorrect or you need to flip selected text to the left or right, switching rendering mode away from DirectWrite enables the alignment shortcuts.

Check your result

Selected text is visibly aligned to the left when you press Ctrl+Alt+L and to the right when you press Ctrl+Alt+R.

Troubleshooting

If the shortcuts do nothing, confirm rendering mode is not set to DirectWrite (change it as described). If the rendering mode was changed while Notepad++ was open, restart the app. If shortcuts still don't work, check whether your keyboard or system-level utility intercepts Ctrl+Alt combinations.