python开发环境 sublime3配置

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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值