cluis92
cluis92

Reputation: 932

How to remove all whitespace from a text file

I am trying to remove all whitespace using Intellij IDEA Ultimate 2019.1.2. I have a simple text file with json data.

I've tried using find and replace with regex enabled, but to no avail.

Upvotes: 2

Views: 3003

Answers (1)

floating cat
floating cat

Reputation: 798

You can press the CTRL + R to open the replace panel, and enter a whitespace in the first input field, leave the second input field empty.

Then click the replace all button.

remove all whitespace

If you want remove all whitespace including line break, you can enter \s and enable the regex option.

remove all whitespace including line break

Upvotes: 3

Related Questions