GithubHelp home page GithubHelp logo

cpulvermacher / close-any-bracket Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 367 KB

A Visual Studio Code extension to automatically close open braces, brackets, or parentheses in the right order.

Home Page: https://marketplace.visualstudio.com/items?itemName=cpulvermacher.close-any-bracket

License: MIT License

TypeScript 99.60% JavaScript 0.40%
vscode vscode-extension

close-any-bracket's Introduction

Close Any Bracket

Latest Release Installs Status License

A Visual Studio Code extension to automatically close open braces, brackets, or parentheses in the right order.

Demo

You may find this particularly useful with callback-heavy languages or frameworks (e.g. jest, vitest) or in conjunction with Copilot tools that are inconsistent in the amount of context they close at the end of a completion.

Features

  • Close last open (, [, or { (default shortcut Alt+], Mac: Control+])
  • Close all open brackets to current indent - Checks the indentation level for the current line and closes all unclosed (, [, or { at this indentation level or deeper. (default shortcut: Alt+Shift+Enter, Mac: Control+Shift+Enter)
  • Supports close to 300 languages including JavaScript, TypeScript, CSS, JSON, Python, Java, Go, C/C++/C#, HTML (with embedded JavaScript or CSS).

Limitations

  • Brackets are inserted at the cursor position without any regard for aesthetics, so this works best if combined with automatic formatting.
  • Some nested structures like template strings may not work well, in particular if the syntax is not valid while you're editing.

close-any-bracket's People

Contributors

cpulvermacher 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.