In Intellij IDEA how do I replace text with a new line?

前端 未结 10 1253
忘掉有多难
忘掉有多难 2020-12-24 00:00

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

10条回答
  •  余生分开走
    2020-12-24 00:44

    Ctrl + Shift + R while the replaced text is selected:

    This works for Replace in Path (WebStorm 2018.2.3):

    see here

提交回复
热议问题