Find and replace with a newline in Visual Studio Code

后端 未结 9 868
囚心锁ツ
囚心锁ツ 2020-12-04 04:43

I am trying out the new Microsoft Visual Studio Code editor in Linux Fedora environment. I would like to know how to replace new line (\\n) in place of some other text.

9条回答
  •  无人及你
    2020-12-04 05:39

    In the local searchbox (ctrl + f) you can insert newlines by pressing ctrl + enter.

    If you use the global search (ctrl + shift + f) you can insert newlines by pressing shift + enter.

    If you want to search for multilines by the character literal, remember to check the rightmost regex icon.


    In previous versions of Visual Studio code this was difficult or impossible. Older versions require you to use the regex mode, older versions yet did not support newline search whatsoever.

提交回复
热议问题