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

Setting


  • Settings
    • {
      	"default_line_ending": "unix",
      	"highlight_line": true,
      	"ignored_packages":
      	[
      		"Vintage"
      	],
      	"ignored_words":
      	[
      		"html"
      	],
      	"show_encoding": true,
      	"show_line_endings": true,
      	"tab_size": 4,
      	"translate_tabs_to_spaces": true,
      	"word_wrap": "true",
      	"wrap_width": 80,
      }
    • MacBook

      • {
        	"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":
        	[
        		100
        	],
        	"scroll_past_end": true,
        	"show_encoding": 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": 100
        }
  • Key Bindings
    • [
          { "keys": ["f4"], "command": "find_next" },
          { "keys": ["f3"], "command": "find_prev" },
          { "keys": ["shift+f4"], "command": "next_result" },
          { "keys": ["shift+f3"], "command": "prev_result" },
          { "keys": ["alt+,"], "command": "jump_back" },
          { "keys": ["alt+."], "command": "jump_forward" },
          { "keys": ["alt+shift+w"], "command": "toggle_setting", "args": {"setting": "word_wrap"}},
          { "keys": ["shift+delete"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
          { "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace"},
      ]
    • MacBook

      • [
            { "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+."], "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":
                  [
                          "*.gitignore",
                          "*.pyc",
                          "jquery-*",
                          "*.min.js",
                          "*.png",
                          "*.ico",
                  ],
                  "folder_exclude_patterns":
                  [
                          "upload"
                  ],
                  "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": 100,
            "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']