SublimeText

Misc

Search and replace pound or hash sign #

I wanted to change a H3 header (###) in a markdown file. I first tried the ordinary search field (no regex) but I did not get any matches. What worked for me was to enable the regex search and enter the following:

^#{3}\s

Build system dir

~/‘Library/Application Support/Sublime Text 3/Packages/User’

python3

{
    "cmd": ["/path/to/python3", "-u", "$file"],
    "selector": "source.python",
    "file_regex": "^\\s*File \"(...*?)\", line ([0-9]*)"
}

Shortcuts

CMD KEYS
Cursor at each selected line cmd + shift + L
Select occurrences cmd + D
Cursor at line above shift + ctrl + arrow up
Cursor at line below shift + ctrl + arrow down
shift current line up ctrl + cmd + arrow up
shift current line down ctrl + cmd + arrow down