Coder Social home page Coder Social logo

smartsemicolon-vscode's Introduction

Smart Semicolon Extension

This extension places semicolons at the end of an expression.

Basic Feature

Semantic Detection

This extension detects line comments and language brackets and configures the end of the current expression.

Line Detection

Line Comment Detection

Bracket Detection

Bracket Detection

Automatic Line Change

Auto Line Change Basic

When enabled, this extension automatically inserts a new line below the current cursor and put the cursor at the beginning of the new line on a semicolon key. The exceptions are when:

  • If the current line is the only line inside a code block.
  • If the below line is a code.
  • If the current line has a close bracket after this expression.
  • If the current line contains any of autoLineChangeExceptionKeywords (for example, you don't want to insert a new line after return, throw keywords in C#).

In case you don't want the newly-inserted line, simply putting another semicolon will cancel the insertion, and the cursor goes back to the previous position.

Supported Languages

  • C#
  • C/C++
  • Java
  • Javascript, Typescript
  • Go
  • ShaderLab

Extension Settings

  • smartsemicolon.enable: toggle this extension on/off.
  • smartsemicolon.autoLineChange: toggle the automatic line changing feature on/off.
  • smartsemicolon.acceptSuggestions: If true, accept the current IntelliSense suggestion on a semicolon.
  • smartsemicolon.showInStatusBar: toggle the extension information on the status bar.
  • smartsemicolon.deleteEmptyLine: toggle deleting an empty line if the cursor is at the line and the user pressed a semicolon.

Known Issues

  • Cannot detect multi-lined comments. To insert a semicolon inside a multi-lined comment, users must manually toggle the extension off.
  • Users must provide information about languages where this extension will take actions. Currently, extensions cannot retrieve language configurations from the Visual Studio Code.

1.0.0

Initial release

1.0.3

  • Supports C#, C/C++, Java, Javascript/Typescript, Go, ShaderLab languages by default.
  • smartsemicolon.languages settings removed.
  • No duplicate semicolons

1.0.4

  • Supports multi-cursor editing.
  • smartsemicolon.acceptSuggestions settings added.
  • smartsemicolon.showInStatusBar settings added.
  • smartsemicolon.deleteEmptyLine settings added.

smartsemicolon-vscode's People

Contributors

cellis avatar seunghwanh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.