Skip to content

Sublime Text

The be-all end all of text editors. Who needs VSCode. Sublime Text contains the most intuitive interface I've ever used, and its gorgeous. It also is built on a slew of performance oriented programming with tons of black majick tricks that allow you to open multi-gigabyte files, and perform some incredibly advanced editing procedures. You can usually get away using sublime text where you would have to normally write a 50 line python script to deal with something.

Installation

Sublime Text Download

Notepad Replacer: Makes Sublime Text take over Notepad.

Licensing

REDACTED

Customizations

Tab Context: open containing folder

Preferences->Browse Packages-> go into the "User" folder and dump this in (or edit it if it exists).

Tab Context.sublime-menu
[
    {
        "caption": "Open Containing Folder",
        "command": "open_dir",
        "args": {
            "dir": "$file_path",
            "file": "$file"
        }
    }
]

Open Folder with Sublime Text

This will add to a folder's context menu, and the background context menu of a directory, an "Open with Sublime Text" entry. Sublime Text supports directories wonderfully.

open_folder_with_sublimetext.reg
Windows Registry Editor Version 5.00

; --- Right-click on a folder -> "Open with Sublime Text" ---
[HKEY_CLASSES_ROOT\Directory\shell\OpenWithSublimeText]
@="Open with Sublime Text"
"Icon"="\"C:\\Program Files\\Sublime Text\\sublime_text.exe\""

[HKEY_CLASSES_ROOT\Directory\shell\OpenWithSublimeText\command]
@="\"C:\\Program Files\\Sublime Text\\sublime_text.exe\" \"%V\""

; --- Right-click on folder background (whitespace) -> "Open with Sublime Text" ---
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWithSublimeText]
@="Open with Sublime Text"
"Icon"="\"C:\\Program Files\\Sublime Text\\sublime_text.exe\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWithSublimeText\command]
@="\"C:\\Program Files\\Sublime Text\\sublime_text.exe\" \"%V\""

Packages

Ctrl+Shift+P opens the command menu, from there install Package Control.

Now you can install packages from the command menu via Package Control: Install Package

Language Support

  • Powershell
  • Mkdocs Material

Dired

Allows you to copy names and rename files by viewing a directory as a text file in Sublime Text.

Diffable

Best diffing plugin I've found

Usage Notes

  • Multi-Line editing
    • Select multiple lines of text
    • Ctrl+Shift+L to create a caret at each line
  • Multi-File editing
    • File->Open Folder