Say I wanted to replace all commas with commas and a new line using Intellij IDEA's replace function. What do I put in the search box? In vim I'd use &\r
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
For those looking for the old multiline replace in inteliJ with version > 15.x. It seems somewhat hidden, but if you select multiple lines > click
CTRL+F
, then immediately clickCTRL+R
you are presented with the original multiline replace.This is working on Mac
IntelliJ 2016.1.3
with ⌘+F > ⌘+RFor Intellij Ultimate 2017.3 on Mac,
command-shift-enter
worksCtrl + Shift + R while the replaced text is selected:
This works for Replace in Path (WebStorm 2018.2.3):
see here
Use Multiline button, no Regex is needed.
edit: the multiline button is missing since IntelliJ 15, but you can enable it by clicking into the textfield and pressing
Alt+Enter
orCtrl+Shift+Enter