Skip to content

Instantly share code, notes, and snippets.

@danielTobon43
Last active October 26, 2021 18:29
Show Gist options
  • Save danielTobon43/586597e5f6d71259ef44868eac2237a8 to your computer and use it in GitHub Desktop.
Save danielTobon43/586597e5f6d71259ef44868eac2237a8 to your computer and use it in GitHub Desktop.
Settings for sublime text 3

Sublime Text Settings

Install these packages with PackageControl:

Packages

  1. SideBarEnhancements
  2. A file icon
  3. PackageResourceViewer
  4. ColorHints
  5. Justify
  6. Indent XML
  7. Compare Side-By-Side
  8. SFTP
  9. HTMLBeauty
  10. SublimeLinter
  11. DockerFile Syntax Highlighting
  12. MarkdownLive Preview
  13. SublimeLinter pyflakes
  14. DocBlockr python

Sublime settings

{
	"color_scheme": "Packages/User/Color-scheme/AgilaOceanicNextUser.tmTheme",
	"font_face": "Inconsolata",
	"font_size": 17,
	"hot_exit": false,
	"ignored_packages":
	[
		"Vintage"
	],
	"remember_open_files": false,
	"theme": "gruvbox.sublime-theme",
	"update_check": false,

	"auto_complete": true,
}

Anaconda

{
    // Linter settings
    "anaconda_linter_mark_style": "none",
    "anaconda_linting": false,

    // Autocomplete
    "suppress_word_completions": true,

    // Pep8/pydocstyle format
    "auto_formatting": true,
    "auto_formatting_timeout":3,

    // Extra paths for autocomplete
    "extra_paths": [
        "/home/danieltc/new_pkg",
    ],

    // Python interpreter
    "python_interpreter": "/usr/bin/python3",

    // Max lenght for pep8
    "pep8_max_line_length": 160,

    // signature text over function
    "enable_signatures_tooltip": false,
}

SublimeLinter

  1. sudo pip3 install pyflakes
{
	"linters":
	{
		"pycodestyle": 
		{
			"executable": "/usr/local/bin/pycodestyle",
			"disable": true

		},
		"pyflakes": 
		{
			"executable": "/usr/local/bin/pyflakes",
			"disable": false

		},
	},
	"styles": 
	[
		{
		"mark_style": "squiggly_underline",
		}
	],
}

sftp-config.json

{
    // The tab key will cycle through the settings when first created
    // Visit https://codexns.io/products/sftp_for_subime/settings for help
    
    // sftp, ftp or ftps
    "type": "sftp",

    "sync_down_on_open": false,
    "sync_same_age": true,
    
    "host": "35.209.49.166",
    "user": "daniel_tobon",
    //"password": "password",
    //"port": "22",
    
    "remote_path": "/home/daniel_tobon/automl_v2",
    //"file_permissions": "664",
    //"dir_permissions": "775",
    
    //"extra_list_connections": 0,

    "connect_timeout": 30,
    //"keepalive": 120,
    //"ftp_passive_mode": true,
    //"ftp_obey_passive_host": false,
    "ssh_key_file": "~/.ssh/google_compute_engine",
    //"sftp_flags": ["-F", "/path/to/ssh_config"],
    
    //"preserve_modification_times": false,
    //"remote_time_offset_in_hours": 0,
    //"remote_encoding": "utf-8",
    //"remote_locale": "C",
    //"allow_config_upload": false,
}

SFTP user-settings - key

{
	"email": "xiaosong@xiaosong.me",
	"product_key": "d419f6-de89e9-0aae59-2acea1-07f92a"
}

DocBlockr

{
	/**
	 * This option dictates which style of docstrings to use, when parsing docstrings
	 *
	 * Available Options:
	 * [PEP0257, docblock, google, numpy, sphinx]
	 */
	"formatter": "google"
}
1. Show sublime text console
2. Run: sublime.log_input(True)
3. Run: sublime.log_commands(True)
To deactivate
4. Run: sublime.log_input(False)
5. Run: sublime.log_commands(False)
[
{
"keys": ["enter"], "command": "commit_completion", "context": [
{ "key": "auto_complete_visible" }
],
},
{
"keys": ["tab"], "command": "commit_completion", "context": [
{ "key": "auto_complete_visible" }
]
},
// keypad numbers for latin america keyboard
{
"keys": ["ctrl+keypad_divide"], "command": "toggle_comment", "args": { "block": false }
},
{
"keys": ["ctrl+shift+keypad_divide"], "command": "toggle_comment", "args": { "block": true }
},
{
"keys": ["keypad_enter"], "command": "commit_completion", "context": [
{ "key": "auto_complete_visible" }
],
},
]
https://stackoverflow.com/questions/25874018/comparing-the-contents-of-two-files-in-sublime-text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment