GithubHelp home page GithubHelp logo

bracket-matcher's Introduction

Bracket Matcher package

OS X Build Status Windows Build status Dependency Status

Highlights and jumps between [], (), and {}. Also highlights matching XML and HTML tags.

Autocompletes [], (), {}, "", '', “”, ‘’, «», ‹›, and backticks by default.

Use ctrl-m to jump to the bracket matching the one adjacent to the cursor. It jumps to the nearest enclosing bracket when there's no adjacent bracket,

Use ctrl-cmd-m to select all the text inside the current brackets.

Use alt-cmd-. to close the current XML/HTML tag.


Configuration

Matching brackets and quotes are sensibly inserted for you. If you dislike this functionality, you can disable it from the Bracket Matcher section of the Settings View.

Custom Pairs

You can customize matching pairs in Bracket Matcher at any time. You can do so either globally via the Settings View or at the scope level via your config.cson. Changes take effect immediately.

  • Autocomplete Characters - Comma-separated pairs that the editor will treat as brackets / quotes. Entries in this field override the package defaults.

    • For example: <>, (), []
  • Pairs With Extra Newline - Comma-separated pairs that enhance the editor's auto indent feature. When used, a newline is automatically added between the pair when enter is pressed between them. Note: This feature is meant to be used in combination with brackets defined for indentation by the active language package (increaseIndentPattern / decreaseIndentPattern). Example:

fn main() {
    | <---- Cursor positioned at one indent level higher
}

Scoped settings

In addition to the global settings, you are also able to add scope-specific modifications to Atom in your config.cson. This is especially useful for editor rule changes specific to each language. Scope-specific settings override package defaults and global settings. Example:

".rust.source":
  "bracket-matcher":
    autocompleteCharacters: [
      "()"
      "[]"
      "{}"
      "<>"
      "\"\""
      "``"
    ]

bracket-matcher's People

Contributors

kevinsawicki avatar 50wliu avatar maxbrunsfeld avatar potto007 avatar kuychaco avatar lee-dohm avatar as-cii avatar mnquintana avatar sirbrillig avatar fstiewitz avatar smashwilson avatar zcbenz avatar seattlevine avatar ben3eee avatar boborbt avatar pcasaretto avatar kevinnathan avatar dmohs avatar teoric avatar baldurh avatar benogle avatar jasonrudolph avatar moritzkn avatar mutle avatar nlbuescher avatar damieng avatar izuzak avatar reujab avatar binarymuse avatar lkashef 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.