https://github.com/erbridge/codewrapper
A Sublime Text 3 package to wrap code at the touch of a button.
https://github.com/erbridge/codewrapper
Last synced: over 1 year ago
JSON representation
A Sublime Text 3 package to wrap code at the touch of a button.
- Host: GitHub
- URL: https://github.com/erbridge/codewrapper
- Owner: erbridge
- License: mit
- Created: 2014-03-07T04:26:49.000Z (over 12 years ago)
- Default Branch: main
- Last Pushed: 2020-06-14T16:43:55.000Z (about 6 years ago)
- Last Synced: 2025-02-09T21:12:35.381Z (over 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# CodeWrapper
Inspired by [consolewrap](https://github.com/unknownuser88/consolewrap), `CodeWrapper` wraps any code with other code at the touch of a button(ish).
## How?
To use, first set up some wrappings in `Packages/User/CodeWrapper.sublime-settings`. See the default settings for hints. It is also possible to add per-project settings to your `.project-settings` file. Just add the package settings to the key `CodeWrapper`.
Once a wrapper is set up, select some code to wrap, open the command palette and select `CodeWrapper`.
I don't like packages setting their own keybindings, so `CodeWrapper` doesn't. If you want to bind `CodeWrapper` to some keys (and you should), add the following to your `Packages/User/Default (${OS_NAME}),sublime-keymap` file:
```json
[
// CodeWrapper
{ "keys": ["ctrl+shift+l"], "command": "code_wrapper" }
]
```
## Contributions
Bug reports, forks and pull requests are welcome.
Please make sure the tests all work before submitting anything, and add new ones for new features.