Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Settings
    • Code Block
      languagetext
      themeEclipse
      {
      	"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

      • Code Block
        languagetext
        themeEclipse
        {
        	"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
    • Code Block
      languagetext
      themeEclipse
      [
          { "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

      • Code Block
        languagetext
        themeEmacs
        [
            { "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": ["super+shift+backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
            { "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace"},
        ]
  • Project Settings

    • Code Block
      languagetext
      themeEclipse
      {
          "folders":
          [
              {
                  "file_exclude_patterns":
                  [
                          "*.gitignore",
                          "*.pyc",
                          "jquery-*",
                          "*.min.js",
                          "*.png",
                          "*.ico",
                  ],
                  "folder_exclude_patterns":
                  [
                          "upload"
                  ],
                  "path": "."
              }
          ]
      }

...

  • Package control 설치
  • ctrl+shift+p: Package Control : Install Package
    • #SublimeCodeIntel
    • Djaneiro
    • ConvertToUTF8
    • Python Flake8 Lint
      • Code Block
        languagepy
        titlesettings- User
        {
            "popup": false,
            "import-order": true,
            "import-order-style": "google",
            "pep8_max_line_length": 100,
            "ignore": ["D100", "D101", "D102", "D103", "D400", "E501I100"],
        }

Tip

...

  • Regular expression 으로 Search & Replace
    • Code Block
      languagepy
      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']