Nethence NEWDOC OLDDOC Lab Webmail Your IP BBDock  

Setting up Sublime Text 3

fetch and install the .deb from the web site.

Plugins / Packages

show the console,

View > Show Console

install the Markdown package helper,

Ctrl+P
install Package Control

then install the following,

Markdown Extended
MarkdownHighlighting
Material Theme
SFTP

note. not using those:

#default styling is white: MarkdownEditing
#this breaks the shift+tab feature to unindent: SmartMarkdown

refs.

Settings

you can now choose the styling,

Preferences -> Color Scheme -> Material Theme...

also fix the tab size to 8 (NOT converted to spaces),

Preferences -> Settings

{
    "color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
    "overlay_scroll_bars": "enabled",
    "tab_size": 8,
    "theme": "Default.sublime-theme"
}

just for the reference even if I don’t use all those,

{
    "always_show_minimap_viewport": true,
    "bold_folder_labels": true,
    "color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
    "font-face": "Fira Code",
    "font_options":
    [
        "gray_antialias",
        "subpixel_antialias"
    ],
    "font_size": 10,
    "ignored_packages":
    [
        "Vintage"
    ],
    "indent_guide_options":
    [
        "draw_normal",
        "draw_active"
    ],
    "line_padding_bottom": 3,
    "line_padding_top": 3,
    "material_theme_tree_headings": true,
    "overlay_scroll_bars": "enabled",
    "tab_size": 8,
    "theme": "Default.sublime-theme"
}

SFTP

note. to produce an id_rsa (OpenSSH format) on Windows, you can use PuTTYGen Conversions > Export OpenSSH.

create a folder e.g. on desktop or ~/dev/ and setup your connection params,

right click on folder > SFTP > edit remote mappings...

{
    // The tab key will cycle through the settings when first created
    // Visit http://wbond.net/sublime_packages/sftp/settings for help

    // sftp, ftp or ftps
    "type": "sftp",

    "save_before_upload": **true**,
    "upload_on_save": true,
    "sync_down_on_open": false,
    "sync_skip_deletes": false,
    "sync_same_age": true,
    "confirm_downloads": false,
    "confirm_sync": true,
    "confirm_overwrite_newer": **true**,

    "host": "host.example.com",
    "user": "SSHUSER",
    //"password": "password",
    "port": "SOMEPORT",

    "remote_path": "/home/SSHUSER/dev/path/",
    "ignore_regexes": [
        "\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json",
        "sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/",
        "\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini"
    ],

    "connect_timeout": 30,
    "ssh_key_file": "~/.ssh/...",
    //"ssh_key_file": "C:/Users/USERNAME/Desktop/ssh/private_key.id_rsa",
    "preserve_modification_times": **true**,
}

note. remove ** around hilighted true accordingly

now sync Remote > Local

ref. https://wbond.net/sublime_packages/sftp/settings#Plugin_Settings