├── .gitignore
├── dotfiles
├── Default (OSX).sublime-keymap
├── Package Control.sublime-settings
├── Preferences.sublime-settings
├── Python.sublime-settings
├── close_tabs.py
├── copy_path_to_clipboard.py
└── snippets
│ ├── pdb.sublime-snippet
│ └── unittest.sublime-snippet
├── img
├── main_sublime_text_3_screen.png
├── st3_anaconda_show_docs.png
├── st3_gitgutter.png
├── st3_package_control.png
├── st3_sidebar_enhancements.png
└── st3_split_screen.png
├── readme.md
└── requirements.txt
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
--------------------------------------------------------------------------------
/dotfiles/Default (OSX).sublime-keymap:
--------------------------------------------------------------------------------
1 | [
2 | // advanced new file
3 | { "keys": ["super+n"], "command": "advanced_new_file_new"},
4 | // Copy file name
5 | {
6 | "keys": ["super+shift+c"],
7 | "command": "copy_path_to_clipboard"
8 | },
9 | // Close all other tabs
10 | {
11 | "keys": ["super+alt+w"],
12 | "command": "close_tabs"
13 | }
14 | ]
15 |
--------------------------------------------------------------------------------
/dotfiles/Package Control.sublime-settings:
--------------------------------------------------------------------------------
1 | {
2 | "installed_packages":
3 | [
4 | "AdvancedNewFile",
5 | "Anaconda",
6 | "Djaneiro",
7 | "Emmet",
8 | "GitGutter",
9 | "Markdown Preview",
10 | "requirementstxt",
11 | "SideBarEnhancements",
12 | "SublimeLinter",
13 | "SublimeLinter-csslint",
14 | "SublimeLinter-html-tidy",
15 | "SublimeLinter-jshint",
16 | "SublimeLinter-json",
17 | "SublimeLinter-pep8",
18 | "SublimeLinter-pyflakes",
19 | "SublimeLinter-pyyaml",
20 | "Theme - Flatland",
21 | "Theme - Soda",
22 | "Tomorrow Color Schemes"
23 | ]
24 | }
25 |
--------------------------------------------------------------------------------
/dotfiles/Preferences.sublime-settings:
--------------------------------------------------------------------------------
1 | {
2 | "auto_complete": false,
3 | "auto_complete_commit_on_tab": true,
4 | "auto_match_enabled": true,
5 | "bold_folder_labels": true,
6 | "caret_style": "solid",
7 | "color_scheme": "Packages/Theme - Flatland/Flatland Dark.tmTheme",
8 | "detect_indentation": true,
9 | "draw_indent_guides": true,
10 | "ensure_newline_at_eof_on_save": true,
11 | "file_exclude_patterns":
12 | [
13 | "*.DS_Store",
14 | "*.pyc",
15 | "*.git"
16 | ],
17 | "find_selected_text": true,
18 | "fold_buttons": false,
19 | "folder_exclude_patterns":
20 | [
21 | ],
22 | "font_face": "Menlo",
23 | "font_options":
24 | [
25 | "no_round"
26 | ],
27 | "font_size": 13,
28 | "highlight_line": true,
29 | "highlight_modified_tabs": true,
30 | "ignored_packages":
31 | [
32 | "Vintage"
33 | ],
34 | "indent_to_bracket": true,
35 | "line_padding_bottom": 0,
36 | "line_padding_top": 0,
37 | "match_brackets": true,
38 | "match_brackets_angle": false,
39 | "match_brackets_braces": true,
40 | "match_brackets_content": true,
41 | "match_brackets_square": true,
42 | "new_window_settings":
43 | {
44 | "hide_open_files": true,
45 | "show_tabs": true,
46 | "side_bar_visible": true,
47 | "status_bar_visible": true
48 | },
49 | "remember_open_files": true,
50 | "remember_open_folders": true,
51 | "save_on_focus_lost": true,
52 | "scroll_past_end": false,
53 | "show_full_path": true,
54 | "show_minimap": false,
55 | "tab_size": 2,
56 | "theme": "Flatland Dark.sublime-theme",
57 | "translate_tabs_to_spaces": true,
58 | "trim_trailing_white_space_on_save": true,
59 | "use_simple_full_screen": true,
60 | "vintage_start_in_command_mode": false,
61 | "wide_caret": true,
62 | "word_wrap": true
63 | }
64 |
--------------------------------------------------------------------------------
/dotfiles/Python.sublime-settings:
--------------------------------------------------------------------------------
1 | {
2 | // editor options
3 | "draw_white_space": "all",
4 |
5 | // tabs and whitespace
6 | "auto_indent": true,
7 | "rulers": [79],
8 | "smart_indent": true,
9 | "tab_size": 4,
10 | "trim_automatic_white_space": true,
11 | "use_tab_stops": true,
12 | "word_wrap": true,
13 | "wrap_width": 80
14 | }
15 |
--------------------------------------------------------------------------------
/dotfiles/close_tabs.py:
--------------------------------------------------------------------------------
1 | import sublime_plugin
2 |
3 |
4 | class CloseTabs(sublime_plugin.TextCommand):
5 |
6 | def run(self, edit):
7 | window = self.view.window()
8 | group_index, view_index = window.get_view_index(self.view)
9 | window.run_command(
10 | 'close_others_by_index',
11 | {'group': group_index, 'index': view_index}
12 | )
13 |
--------------------------------------------------------------------------------
/dotfiles/copy_path_to_clipboard.py:
--------------------------------------------------------------------------------
1 | import sublime
2 | import sublime_plugin
3 |
4 |
5 | class CopyPathToClipboard(sublime_plugin.TextCommand):
6 |
7 | def run(self, edit):
8 | line_number, column = self.view.rowcol(self.view.sel()[0].begin())
9 | line_number += 1
10 | sublime.set_clipboard(self.view.file_name() + ':' + str(line_number))
11 |
--------------------------------------------------------------------------------
/dotfiles/snippets/pdb.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 | pdb
8 | source.python
9 |
10 |
--------------------------------------------------------------------------------
/dotfiles/snippets/unittest.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 | testcase
13 | source.python
14 | Adds a unittest TestCase skeleton at current pointer
15 |
16 |
--------------------------------------------------------------------------------
/img/main_sublime_text_3_screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mjhea0/sublime-setup-for-python/fde7f9746236dbe6ad0260c84869ede389346f72/img/main_sublime_text_3_screen.png
--------------------------------------------------------------------------------
/img/st3_anaconda_show_docs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mjhea0/sublime-setup-for-python/fde7f9746236dbe6ad0260c84869ede389346f72/img/st3_anaconda_show_docs.png
--------------------------------------------------------------------------------
/img/st3_gitgutter.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mjhea0/sublime-setup-for-python/fde7f9746236dbe6ad0260c84869ede389346f72/img/st3_gitgutter.png
--------------------------------------------------------------------------------
/img/st3_package_control.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mjhea0/sublime-setup-for-python/fde7f9746236dbe6ad0260c84869ede389346f72/img/st3_package_control.png
--------------------------------------------------------------------------------
/img/st3_sidebar_enhancements.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mjhea0/sublime-setup-for-python/fde7f9746236dbe6ad0260c84869ede389346f72/img/st3_sidebar_enhancements.png
--------------------------------------------------------------------------------
/img/st3_split_screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mjhea0/sublime-setup-for-python/fde7f9746236dbe6ad0260c84869ede389346f72/img/st3_split_screen.png
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | ## Setting up Sublime Text 3 for Full Stack Python Development
2 |
3 | Check out the blogpost here - **https://realpython.com/blog/python/setting-up-sublime-text-3-for-full-stack-python-development/**
4 |
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mjhea0/sublime-setup-for-python/fde7f9746236dbe6ad0260c84869ede389346f72/requirements.txt
--------------------------------------------------------------------------------