Diff files

  • Diff two files
    • Make sure the files are in the “Folders” section
      • You can add folders to the project by dragging and dropping
    • Selct the first file, then Ctrl select the second
    • RMB click > Diff Files…
  • Only works with UTF-8 files
    • If you can not diff to files that should be “diffable” then you probably have some non-ascii characters
    • A quick way to inspect teh file is to press “Ctrl F” then press “Alt R” to enable Regex mode
      • You can also click the regex button on the left most edge of the search input field
    • Then paste the regex [^\x00-\x7F] in the searc input field
    • Press find

Search and replace #

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:


Build system dir

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


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


Cursor -
Cursor at each selected line Ctrl + Shift + L
Select occurrences Ctrl + D
Add Cursor at line above Shift + Alt + arrow up
Add Cursor at line below shift + Alt + arrow down
Edit -
Shift current line up Shift + Ctrl + Arrow up
Shift current line down Shift + Ctrl + Arrow down
Layout -
Set Number of columns
1 Column Alt + Shift + 1
2 Columns Alt + Shift + 2
Switch to Columns
Column 1 Ctrl + 1
Column 2 Ctrl + 2
Set tab in current columnn
Tab 1 Alt + 1
Tab 2 Alt + 2
Switch tab in current columnn Ctrl + Tab