In IntelliJ IDEA how do I replace text with a new line? November 15, 2022 by Tarik You need to check the Regex box and use “\n” for the new line character: