Skip to content

EmrD/DoubleSpaceToEnterVSCode

Repository files navigation

Double Space Enter - VS Code Extension

This Visual Studio Code extension allows you to insert a newline by double pressing the spacebar. A single press of the spacebar will insert a space, while a double press within a specified time will insert a newline (\n).Requires VSCode at least 1.92.0 from engine!

Features

  • Single Space Press: Press the spacebar once to insert a regular space character.
  • Double Space Press: Quickly press the spacebar twice to insert a newline.
  • Customizable Timing: The delay between spacebar presses can be customized to adjust the double press detection (default is 300ms).

Installation

  1. Open Visual Studio Code.
  2. Go to the Extensions View (Ctrl+Shift+X).
  3. Click the dots and select "Install from VSIX"
  4. Select the "doublespacetoenter-1.0.0.vsix" file from the list.

Alternatively, you can manually clone this repository and load it in your VS Code instance.

Usage

Once installed:

  1. Open any text file in VS Code.
  2. Start typing in the editor.
  3. Press the spacebar:
    • Press it once to insert a space.
    • Press it twice within 300ms to insert a newline.