Andrew Dupont dfb2493e43 Add some more stray `.eslintrc` files | 9 月之前 | |
---|---|---|
.. | ||
keymaps | 0dc1d92821 Bundling bracket-matcher | 1 年之前 |
lib | e71e56bdad Get `bracket-matcher` specs passing | 9 月之前 |
menus | 0dc1d92821 Bundling bracket-matcher | 1 年之前 |
spec | dfb2493e43 Add some more stray `.eslintrc` files | 9 月之前 |
styles | 0dc1d92821 Bundling bracket-matcher | 1 年之前 |
.gitignore | 34a7e5c386 Bundle `bracket-matcher` | 1 年之前 |
CONTRIBUTING.md | 0dc1d92821 Bundling bracket-matcher | 1 年之前 |
LICENSE.md | 0dc1d92821 Bundling bracket-matcher | 1 年之前 |
README.md | 0dc1d92821 Bundling bracket-matcher | 1 年之前 |
package-lock.json | 64d0e8a52f chore(deps): update dependency underscore to 1.12.1 [security] | 1 年之前 |
package.json | 361381587c Fixed repo of `bracket-matcher` after merging from main, fixed `yarn.lock` | 1 年之前 |
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.
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.
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.
<>, (), []
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
}
In addition to the global settings, you are also able to add scope-specific modifications to Pulsar 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: [
"()"
"[]"
"{}"
"<>"
"\"\""
"``"
]