更新时间:2022-03-24 09:26:15
前言
有很多的IDE,今天为大家介绍一个eclipse+Pydev的组合,记录自己的配置。
**
一、前提准备**
二、配置
废话不多说,说重点
path变量的设置: ;C:jdk1.7.0_51bin; (记得前后都加上分号。简单地设置path就可以用了,关于JAVA_HOME和CLASSPATH的配置见:http://my.oschina.net/cqslpxzzp/blog/363433)
Windows -> Preferences -> General -> Editors -> Text Editors -> Spelling -> encoding : utf-8
Windows -> Preferences -> General -> Workspace -> Text file encoding : utf-8
Windows -> Preferences -> PyDev -> Editor -> Templates -> <Empty> 第一行写入:
#coding=utf-8
(这句主要是为了照顾python 2.x,在3.x中默认使用utf-8。以后新建.py文件时eclipse会自动在文件前加上模板的内容)
Windows -> Preferences -> General -> Appearance -> Colors and Fonts -> Basic ->
Text font -> 脚本:中欧字符
Windows -> Preferences -> PyDev -> Editor -> Apprearances color options -> Comments
Windows -> Preferences -> General -> Editors -> Text Editors -> Show line numbers
Windows -> Preferences -> General -> Editors -> Keys
**小编推荐一个学python的学习qun 740322234
无论你是大牛还是小白,是想转行还是想入行都可以来了解一起进步一起学习!裙内有开发工具,很多干货和技术资料分享!**
设置步骤:
最后一定记得钉住,不然一运行代码,Python console又会变成java Stack Trace console
修改布局后记得保存下来(不过这样改了console后,虽然下次打开布局依旧,可是还得重新设置console内容,不过为了学习方便也值得)
然后就可以看到新的布局