問題:
I am trying out the new Microsoft Visual Studio Code editor in Linux Fedora environment.我正在 Linux Fedora 環境中試用新的 Microsoft Visual Studio Code 編輯器。 I would like to know how to replace new line (\\n) in place of some other text.我想知道如何替換新行 (\\n) 來代替其他一些文本。
For example, I have html text like this例如,我有這樣的 html 文本
<tag><tag>
which I would like to replace as我想替換爲
<tag>
<tag>
In sublime I would use regex pattern and find "><" and replace with ">\\n<" How do I accomplish this in Visual Studio Code?在 sublime 中,我會使用正則表達式模式並找到"><"並替換爲">\\n<"如何在 Visual Studio Code 中完成此操作?
解決方案:
參考一: https://stackoom.com/question/23Lon參考二: Find and replace with a newline in Visual Studio Code