Skip to content

[vscode-toogle-semicolon] This extension allows you to add or remove semicolon, colon or comma in the end of selected lines.

Notifications You must be signed in to change notification settings

acorretti/vscode-toogle-semicolon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

This extension allows you to add or remove semicolon, colon or comma in the end of selected lines.

Using

  1. Install this plugin :)
  2. Open Command Palette (Ctrl+P), you could search for:
    • Toggle Semicolon.
    • Toggle Colon.
    • Toggle Comma.
  3. Add key bindings (Recommended) .
    • Open key bindings settings file:
      • Open Command Palette (Ctrl+P)
      • Search for 'Open keyboard shortcuts'
    • Add and save you key bindings. For example:
// Place your key bindings in this file to overwrite the defaults
[
    { "key": "ctrl+;",   "command": "extension.toggleSemicolon", "when": "editorTextFocus" },
    { "key": "ctrl+shift+;",   "command": "extension.toggleColon", "when": "editorTextFocus" },
    { "key": "ctrl+,",   "command": "extension.toggleComma", "when": "editorTextFocus" }
]
  1. Enjoy! :)

Extension Settings

For multiple selections, by default, it should apply for all selected line as same behaviour as the first selected line.
I found it's good with me, but if you want pure toggle for each line, you can turn off it by:

  • Open User Settings file:
    • Open Command Palette (Ctrl+P)
    • Search for 'Open User Settings'
  • Add and save:
// Place your settings in this file to overwrite the default settings
{
    "extension.toggleSemicolon.followFirstSelection" : false
}

About

[vscode-toogle-semicolon] This extension allows you to add or remove semicolon, colon or comma in the end of selected lines.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%