Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Control Blank LineNew to Visual Studio Code? Get it now.
Control Blank Line

Control Blank Line

Satoshi Yamamoto

|
284 installs
| (0) | Free
Control by increasing or decreasing empty or blank lines.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Control Blank Line

Control Blank Line extension has the ability to remove, increase, decrease, and combine blank lines into one line.

Commands

Following commands are available:

- Control Blank Line : Delete : Decrease One Line
- Control Blank Line : Delete : Combine One Line
- Control Blank Line : Delete : All
- Control Blank Line : Delete : Auto
- Control Blank Line : Add : Increase One Line

Default Key binding

Command Default Key Windows Default Key Mac
Control Blank Line : Delete : Auto Alt + Ctrl + d Opt + Ctrl + d

Execution example

Control Blank Line : Delete : Decrease One Line

---

  item 1
  

    item 1-1
      item 1-1-1
      item 1-1-2
    item 1-2

  
    
  item 2
    item 2-1
    item 2-2

---

↓

---
  item 1
  
    item 1-1
      item 1-1-1
      item 1-1-2
    item 1-2

  
  item 2
    item 2-1
    item 2-2
---

Control Blank Line : Delete : Combine One Line

---

  item 1
  

    item 1-1
      item 1-1-1
      item 1-1-2
    item 1-2

  
    
  item 2
    item 2-1
    item 2-2

---

↓

---

  item 1
  
    item 1-1
      item 1-1-1
      item 1-1-2
    item 1-2

  item 2
    item 2-1
    item 2-2

---

Control Blank Line : Delete : All

---

  item 1
  

    item 1-1
      item 1-1-1
      item 1-1-2
    item 1-2

  
    
  item 2
    item 2-1
    item 2-2

---

↓

---
  item 1
    item 1-1
      item 1-1-1
      item 1-1-2
    item 1-2
  item 2
    item 2-1
    item 2-2
---

Control Blank Line : Delete : Auto

  • If there are consecutive blank lines, reduce one blank line from the block
  • If there is only a single blank line, delete the blank lines.

If executed consecutively, it is the same as if the following were executed in sequence.

  • [Delete : Decrease One Line]
  • [Delete : Combine One Line]
  • [Delete : All]

This function seems to be the most useful, so I have set the default key bindings


Control Blank Line : Add : Increase One Line

---

  item 1
  

    item 1-1
      item 1-1-1
      item 1-1-2
    item 1-2

  
    
  item 2
    item 2-1
    item 2-2

---

↓

---


  item 1
  


    item 1-1
      item 1-1-1
      item 1-1-2
    item 1-2

  
    
    
  item 2
    item 2-1
    item 2-2


---

Install

https://marketplace.visualstudio.com/items?itemName=SatoshiYamamoto.vscode-control-blank-line

License

Released under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft