So nutzt du: Tabs to Spaces
- Paste your code — tabs are replaced with two spaces.
- For four spaces, type four spaces in Replace.
- Copy the result.
Spaces back to tabs
Set Find to ^( {4})+… or more simply to four spaces with Regex off, and Replace to . To make the change consistent across a project, add an .editorconfig — generate one with the EditorConfig Generator.
Auch gesucht als: convert tabs to spaces, tab to space converter, spaces to tabs, replace tabs with spaces, fix indentation.
Passende Tools zu: Tabs to Spaces
- Find and Replace — Paste text and replace words or patterns — case-sensitive or not, whole words only, or with regular expressions and $1 capture groups.
- Line Ending Converter — See which line endings a file uses and convert them — Windows CRLF to Unix LF or back — for pasted text or a whole batch of files, with trailing-space and tab cleanup on the side.
- JavaScript Formatter — Unminify and pretty-print JavaScript, JSON or JSX with your preferred indentation and brace style — or strip whitespace and comments with a verified minifier.
- Remove Extra Spaces — Collapse double spaces, runs of spaces and stray tabs into a single space — line breaks are kept.