https://github.com/ccampbell/sublime-smart-match
Sublime Text package to make parenthesis, bracket, and square bracket completions smarter
https://github.com/ccampbell/sublime-smart-match
Last synced: 6 months ago
JSON representation
Sublime Text package to make parenthesis, bracket, and square bracket completions smarter
- Host: GitHub
- URL: https://github.com/ccampbell/sublime-smart-match
- Owner: ccampbell
- Created: 2012-03-15T04:43:59.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2013-10-31T19:31:44.000Z (about 12 years ago)
- Last Synced: 2025-02-05T13:44:08.445Z (11 months ago)
- Language: Python
- Homepage:
- Size: 102 KB
- Stars: 17
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sublime Text Smart Match
Sublime Text by default does not allow you to close parenthesis that are directly preceding other parenthesis. This is the same behavior with brackets and square brackets.
Sometimes this is the desired behavior but let's say you have something like this: ``function1(foo)``.
If you go to wrap it in another function ``function2(function1(foo)`` then insert the cursor after foo but before the ending parenthesis to close the parenthesis it will not let you even though it should be allowed.
This package makes it smarter so it detects matching parenthesis to see if the insertion is allowed.
For more information about the issue see the ticket I created at:
http://www.sublimetext.com/forum/viewtopic.php?f=3&t=5708
## Installation
If you are using Sublime Package Control you can press ``cmd+shift+p``. Then select ``Package Control: Install Package`` and choose ``SmartMatch``.
Another option is running the following command (this is the os x version):
```
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone git@github.com:ccampbell/sublime-smart-match.git SmartMatch
```