首页 技术 正文
技术 2022年11月23日
0 收藏 421 点赞 3,658 浏览 1204 个字
{
"font_face": "Monaco", // 编辑器的字体
"font_size": 13, // 字号
"highlignt_line": true, // 是否高亮当前行
"tab_size": 2, // tab 字符宽度(对应的空格数)
"translate_tabs_to_spaces": true, // 是否自动将新插入的 tab 转换为空格
"word_wrap": true // 是否自动换行
}

monaco,先从网上下载ttf格式,然后放到windows目录下的font目录

配置python开发环境:

  • pylinter 插件:

  对违反规范提示图标

{
// Configure pylint's behavior
"pylint_rc": "/Users/daniel/dev/pylintrc", // Show different icons for errors, warnings, etc.
"use_icons": true, // Automatically run Pylinter when saving a Python document9
"run_on_save": true, // Don't hide pylint messages when moving the cursor
"message_stay": true
}
  • SublimeCodeIntel 插件:

  可以自定义提示的内容库,我的python智能提示设置

"Python": {
"python":"D:/Python27/python.exe",
"pythonExtraPaths":
[
"D:/Python27",
"D:/Python27/DLLs",
"D:/Python27/Lib",
"D:/Python27/Lib/lib-tk",
"D:/Python27/Lib/site-packages"
]
}
  • Python PEP8 Autoformat 插件:格式化代码
{
"auto_complete": false,
"caret_style": "solid",
"ensure_newline_at_eof_on_save": true,
"find_selected_text": true,
"font_size": 11.0,
"highlight_modified_tabs": true,
"line_padding_bottom": 0,
"line_padding_top": 0,
"scroll_past_end": false,
"show_minimap": false,
"tab_size": 4,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"wide_caret": true,
"word_wrap": true,
}

快捷键 CTRL+SHIFT+R 自动格式化python代码

参考博客:http://blog.jobbole.com/40660/

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:8,949
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,475
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,288
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,104
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,735
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,770