Summary -

In this topic, we explain about the Edit Menu in detail with screenshots.

Edit menu consists of the editing options that are used to edit the file.

Edit Menu
Tip! Ctrl is the control key for Windows and Cmd is the command key for Mac. So replace "Ctrl" with "Cmd" to form a shortcut key for Mac.

Most of the Edit Menu options are present in other text editors. However we are reiterating them once again. The Edit Menu options are -

  • Undo (Ctrl + Z)
  • Redo (Ctrl + Y)
  • Cut (Ctrl+ X)
  • Copy (Ctrl + C)
  • Paste (Ctrl + V)
  • Select All (Ctrl + A)
  • Select Line (Ctrl + L)
  • Split Selection into Lines (Ctrl + Alt + L)
  • Add Cursor to Previous Line (Alt + Shift + UpArrow)
  • Add Cursor to Next Line (Alt + Shift + DownArrow)
  • Indent (Ctrl + ])
  • Unindent (Ctrl + [)
  • Duplicate (Ctrl + D)
  • Delete Line (Ctrl + Shift + D)
  • Move Line Up (Ctrl + Shift + UpArrow)
  • Move Line Down (Ctrl + Shift + DownArrow)
  • Toggle Line Comment (Ctrl + /)
  • Toggle Block Comment (Ctrl + Shift + /)
  • Show Code Hints (Ctrl + Space)
  • Show Parameter Hint (Ctrl + Shift + Space)
  • Auto Close Braces
  • Auto-fix with ESLint
  • Rename (Ctrl + R)
  • Extract to Variable (Ctrl + Alt + V)
  • Extract to Function (Ctrl + Alt + M)
  • Wrap in Try Catch
  • Wrap in Condition
  • Convert to Arrow Function
  • Create Getters/Setters
Note! All the options are self-explanatory. However, we explains the hightlighted options below for a better understanding.

Select Line (Ctrl + L) - Selects the current line where the cursor currently placed.

Before -

Select Line

After -

Select Line

Add Cursor to Previous Line (Alt + Shift + UpArrow) - Adds the cursor to the previous line along with current line.

Before -

Add Cursor to Previous Line

After -

Add Cursor to Previous Line

Add Cursor to Next Line (Alt + Shift + DownArrow) - Adds the cursor to the next line along with current line.

Before -

Add Cursor to Next Line

After -

Add Cursor to Next Line

Duplicate (Ctrl + D) - Duplicates the current row where the cursor placed.

Before -

Duplicate

After -

Duplicate

Toggle Line Comment (Ctrl + /) - Comments the entire line where the cursor placed.

Before -

Toggle Line Comment

After -

Toggle Line Comment

Toggle Block Comment (Ctrl + Shift + /) - Comments the selected block.

Before -

Toggle Block Comment

After -

Toggle Block Comment

Show Code Hints (Ctrl + Space) - Shows the code hints as a popup.

Before -

Show Code Hints

After -

Show Code Hints

Show Parameter Hint (Ctrl + Shift + Space) - Shows the parameter hints as a popup for the languages which have parameters.

Extract to Variable (Ctrl + Alt + V) - Creates a intermediate variable in between the selected extract or value.

Before -

Extract to Variable

After -

Extract to Variable

Extract to Function (Ctrl + Alt + M) - Creates a function with set of statements selected.

Before -

Extract to Function

After -

Extract to Function

Wrap in Try Catch - Wraps with try and catch block to the selected statements.

Before -

Wrap in Try Catch

After -

Wrap in Try Catch

Wrap in Condition - Wraps with if condition to the selected statements.

Before -

Wrap in Condition

After -

Wrap in Condition

Convert to Arrow Function - Coverts the function expression to arrow function.

Before -

Convert to Arrow Function

After -

Convert to Arrow Function