使用正则匹配删除文本空行 - 正则 - 空白行 - vscode
效果方法打开编辑器vscode"编辑"> "替换"空行的正则表达式是:(包括空格、大空格、行尾的换行符--方便合并多个空行为0个空行)^(\s*)$\n\s代表任意的空字符,\n代表屁股的换行符,如果无法匹配,请用"\n\r"替换为空字符Visual Studio Code - Code Editing. RedefinedVisual Studio Code is a code edito
·
效果
方法
- 打开编辑器vscode
- "编辑" > "替换"
- 空行的正则表达式是:(包括空格、大空格、行尾的换行符--方便合并多个空行为0个空行)
^(\s*)$\n
\s代表任意的空字符,\n代表屁股的换行符,如果无法匹配,请用"\n\r"
- 替换为空字符
Getting Started
Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages (such as C++, C#, Java, Python, PHP, Go) and runtimes (such as .NET and Unity). Begin your journey with VS Code with these introductory videos.
更多推荐
已为社区贡献30条内容
所有评论(0)