🚀 A simple VS Code extension to normalize newline characters in your text.
Features
- 🔁 Convert double newlines (
\n\n ) into single (\n )
- 🔁 Convert single newlines (
\n ) into double (\n\n )
- 💡 Works on selected text or the entire document
Usage
- Open the Command Palette (
Ctrl+Shift+P )
- Search for one of the following:
LineFormatter: Convert Double Newlines to Single
LineFormatter: Convert Single Newlines to Double
- Run the command
📝 The extension will apply the transformation to your selected text. If no text is selected, the entire document is transformed.
Commands
Command |
Description |
LineFormatter: Convert Double Newlines to Single |
Replaces all occurrences of \n\n with \n |
LineFormatter: Convert Single Newlines to Double |
Inserts an extra newline, avoiding duplication |
Extension Settings
This extension has no settings. Just use the commands!
License
MIT
日本語の説明
🔧 機能
\n\n を \n に置換
\n を \n\n に置換(連続改行は維持)
- テキスト選択時は選択範囲だけ、選択なしならドキュメント全体が対象
🧭 使い方
- コマンドパレット(
Ctrl+Shift+P )を開く
- 「
LineFormatter: Convert Double Newlines to Single 」または「LineFormatter: Convert Single Newlines to Double 」を実行
- 結果を確認!
💬 ご意見・改善要望は GitHub にてお待ちしております。
| |