sublime shortcut keys and settings configuration - jetbrains habits

Keywords: Programming sublime Python

start

After many small partners use jetbrains series editors and use lightweight sublime, some settings and shortcut habits may not be suitable
Today, Xiaobian will give you some common sublime settings and shortcut key configurations

Set up

{
    // Color theme
    "color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme",
    // Automatic preservation
    "expand_tabs_on_save": true,
    // font size
    "font_size": 18,
    
    "ignored_packages":
    [
        "Vintage"
    ],
    "save_on_focus_lost": true,
    // Tab width
    "tab_size": 4,
    // theme
    "theme": "Default.sublime-theme",
    // Auto convert to space
    "translate_tabs_to_spaces": true,
    // Automatic line feed
    "word_wrap":true,
    // Set not to check for updates
    "update_check":false,
}

Shortcut keys


[
    // Pick the same word
    { "keys": ["ctrl+shift+d"], "command": "find_under_expand" },
    // Quickly copy a row
    { "keys": ["ctrl+d"], "command": "duplicate_line" },
    // Function
    { "keys": ["ctrl+shift+f10"], "command": "build" },
    // Small line change
    { "keys": ["shift+enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line.sublime-macro"} },
    // Repeat the previous action
    { "keys": ["ctrl+shift+k"], "command": "redo_or_repeat" },
    // Delete current row
    { "keys": ["ctrl+y"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },

    // Run python program with input field
    { "keys": ["ctrl+f10"], "caption": "SublimeREPL:Python", 
                      "command": "run_existing_window_command", "args":
                      {
                           "id": "repl_python_run",
                           "file": "config/Python/Main.sublime-menu"
                      } 
    },
    // Search and replace
    { "keys": ["ctrl+r"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} },
    // Exchange shortcut keys
    { "keys": ["ctrl+h"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },
    // Code formatting in prettify
    // { "keys": ["ctrl+shift+h"], "command": "replace_next" },
    // prettify modify
    { "keys": ["ctrl+alt+l"], "command": "htmlprettify" },
    
]

Set not found Classmate Look here

In the sublime menu bar, click preferences - > Settings
In the sublime menu bar, click preferences - > key bindings

Posted by hunna03 on Fri, 27 Mar 2020 09:17:59 -0700