Page tree
Skip to end of metadata
Go to start of metadata

Setting


  • Settings
    • {
      	"default_line_ending": "unix",
      	"find_selected_text": true,
      	"font_face": "Monaco",
      	"font_size": 13,
      	"highlight_line": true,
      	"ignored_packages":
      	[
      		"Vintage"
      	],
      	"ignored_words":
      	[
      		"html"
      	],
      	"remember_full_screen": true,
      	"rulers":
      	[
      		80
      	],
      	"scroll_past_end": true,
      	"show_encoding": true,
      	"show_full_path": true,
      	"show_line_endings": true,
      	"tab_size": 4,
      	"translate_tabs_to_spaces": true,
      	"trim_trailing_white_space_on_save": true,
      	"word_wrap": "true",
      	"wrap_width": 80
      }
  • Key Bindings
    • [
          { "keys": ["super+alt+s"], "command": "prompt_save_as" },
          { "keys": ["super+shift+s"], "command": "save_all" },
          { "keys": ["super+t"], "command": "find_prev" },
          { "keys": ["super+shift+g"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
          { "keys": ["super+["], "command": "jump_back" },
          { "keys": ["super+]"], "command": "jump_forward" },
          { "keys": ["alt+shift+w"], "command": "toggle_setting", "args": {"setting": "word_wrap"}},
          { "keys": ["super+shift+backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
          { "keys": ["super+\\"], "command": "goto_definition" },
          { "keys": ["super+shift+\\"], "command": "goto_python_definition"},
          { "keys": ["super+alt+up"], "command": "move_to_group", "args": { "group": 0 } },
          { "keys": ["super+alt+down"], "command": "move_to_group", "args": { "group": 1 } },
          { "keys": ["super+k", "super+v"], "command": "reveal_in_side_bar" },
          { "keys": ["ctrl+g"], "command": "focus_side_bar" },
          { "keys": ["super+alt+v"], "command": "paste_from_history" },
          { "keys": ["super+."], "command": "next_modification" },
          { "keys": ["super+,"], "command": "prev_modification" },
          { "keys": ["super+b"], "command": "next_bookmark" },
          { "keys": ["super+shift+b"], "command": "toggle_bookmark" },
          { "keys": ["super+alt+b"], "command": "clear_bookmarks" },
      ]
      
  • Project Settings

    • {
          "folders":
          [
              {
                  "file_exclude_patterns":
                  [
                      "*.pyc",
                      "*.min.js",
                      "*.png",
                      "*.ico"
                  ],
                  "folder_exclude_patterns":
                  [
                      "upload",
                      "node_modules",
                      "dist",
                      "docs",
                      ".tox"
                  ],
                  "path": "/"
              }
          ]
      }

Plugins


  • Package control 설치
  • ctrl+shift+p: Package Control : Install Package
    • SublimeCodeIntel
    • Djaneiro
    • ConvertToUTF8
    • Python Flake8 Lint
      • settings- User
        {
            "popup": false,
            "import-order": true,
            "import-order-style": "google",
            "pep8_max_line_length": 79,
            "ignore": ["D100", "D101", "D102", "D103", "D400", "I100", "I201", "N812"],
        }

Tip


  • Regular expression 으로 Search & Replace
    • start_from = '',
      end_till = '',
      sw_version = '',
      
      
      이를 아래처럼 통째로 바꾸고 싶을 때,
      
      
      start_from = csv_form.cleaned_data['start_from'],
      end_till = csv_form.cleaned_data['end_till'],
      sw_version = csv_form.cleaned_data['sw_version'],
    • Find What: (\w+)",

    • Replace With: \1 = csv_form.cleaned_data['\1']