Split Line
Sublime text plugin to split single line arrays over multiple lines.
Details
Installs
- Total 3K
- Win 1K
- Mac 747
- Linux 405
| Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Split Line Sublime Plugin
Using ctrl+shift+\ (ctrl+shift+` for OSX) or the context menu option split a single-line array into multiple lines. Developed for Python but can be used with any comma-seperated array.
Turn recursive splitting on/off through the sublime-settings file for the plugin.
Examples
array = [1, 2, 3, 4, 5,]
# Becomes
array = [
1,
2,
3,
4,
5,
]
array = (1, 2, {3, 4}, 5,)
# Normally:
array = (
1,
2,
{3, 4},
5,
)
# With recursive_split = true:
array = (
1,
2,
{
3,
4,
},
5,
)
def my_function(a, b, c):
pass
# Becomes
def my_function(
a,
b,
c
):
pass
Installation
Clone this repo into your sublime Packages folder.
Linux
cd ~/.config/sublime-text-3/Packages/
git clone https://github.com/stevebasher/Split-Line-Sublime-Plugin.git
OSX
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
git clone https://github.com/stevebasher/Split-Line-Sublime-Plugin.git