Anaconda用户配置-Anaconda.sublime-settings
增加了点触完成
参考链接http://damnwidget.github.io/anaconda/IDE/#toc_3
{
"python_interpreter": "/usr/bin/python",
"anaconda_linting": false,
"disable_anaconda_completion": false,
"suppress_word_completions": true,
"suppress_explicit_completions": true,
"complete_parameters": true,
"complete_all_parameters": true,
"auto_complete_triggers": [
{
"selector": "source.python - string - comment - constant.numeric",
"characters": "."
}
]
}
Python.sublime-settings
{
"auto_complete_triggers":
[{
"selector": "source.python - string - comment - constant.numeric",
"characters": "."
}]
}
Preferences.sublime-settings-User
{
"auto_find_in_selection": true,
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"expand_tabs_on_save": true,
"font_size": 15,
"font_face":"Monaco",
"save_on_focus_lost": true,
"bold_folder_labels": true,
"ignored_packages":
[
"Vintage"
],
"tab_size": 4,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"update_check": false,
"word_wrap": true,
"default_line_ending": "unix",
"draw_white_space": "all",
"highlight_modified_tabs": true,"draw_minimap_border": true
}
按键绑定
Default (Linux).sublime-keymap
[
{
"keys":["f1"],
"caption": "SublimeREPL: Python - IPython",
"command": "run_existing_window_command", "args":
{
"id": "repl_python_ipython",
"file": "config/Python/Main.sublime-menu"
}
},
{
"keys":["f2"],
"caption": "SublimeREPL: Python",
"command": "run_existing_window_command", "args":
{
"id": "repl_python",
"file": "config/Python/Main.sublime-menu"
}
},
{
"keys":["f5"],
"caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command",
"args": {
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}
},
{
"keys":["f6"],
"caption": "SublimeREPL: Python - PDB current file",
"command": "run_existing_window_command", "args":
{
"id": "repl_python_pdb",
"file": "config/Python/Main.sublime-menu"
}
}
]
sublimetmpl配置
sublime-setting
{
"python": {
"syntax": "Packages/Python/Python.tmLanguage",
"extension": "py"
},
"date_format" : "%Y-%m-%d %H:%M:%S",
"attr": {
"author": "Wenzhi lee",
"email": "email",
"link" :"url",
"version":"V0.0.1"
}
}
py-tmpl
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : ${date}
# @Author : ${author} (${email})
# @Link : ${link}
# @Version : ${id}
${2:import os}
${3:import furl}
${0:import requests}
${4:from BeautifulSoup import BeautifulSoup }
$1