Skip to content
Fix Code Error

Convert tabs to spaces in Notepad++

March 13, 2021 by Code Error
Posted By: Helephant

How do I convert tabs to spaces in Notepad++?

I found a webpage that suggests it’s possible, but I couldn’t find any information about how to do it.

I would like to be able to do that, because some web forms don’t respect code with tabs in them.

Solution

To convert existing tabs to spaces, press Edit->Blank Operations->TAB to Space.

If in the future you want to enter spaces instead of tab when you press tab key:

  1. Go to Settings->Preferences...->Language (since version 7.1) or Settings->Preferences...->Tab Settings (previous versions)
  2. Check Replace by space
  3. (Optional) You can set the number of spaces to use in place of a Tab by changing the Tab size field.

Screenshot of Replace by space

Answered By: Anonymous

Related Articles

  • npm install error in vue
  • What is an optional value in Swift?
  • What is the worst programming language you ever worked with?
  • What does "Fatal error: Unexpectedly found nil while…
  • Jetpack Compose and Hilt Conflict
  • Active tab issue on page load HTML
  • Rails wrong number of arguments error when generating…
  • How to solve Internal Server Error in Next.Js?
  • Why is Future[Set[Unit]] not accepted as Future[Unit]?
  • Problems Installing CRA & NextJS from NPM (Error:…

Disclaimer: This content is shared under creative common license cc-by-sa 3.0. It is generated from StackExchange Website Network.

Post navigation

Previous Post:

XAMPP – MySQL shutdown unexpectedly

Next Post:

How to check if array is empty or does not exist?

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Get code errors & solutions at akashmittal.com
© 2022 Fix Code Error