大家都是用什么编辑器
fyting
2007-07-30
emacs的自动缩进很方便啊,要装python-mode。可惜不管是pycomplete还是py-complete在windows下都没搞出来,似乎是pymacs有点问题...
(add-to-list 'load-path "~/.emacs.d/my-sitepackage/python" load-path) (autoload 'python-mode "python-mode" "Python editing mode." t) ;;python文件关联 (add-to-list 'auto-mode-alist '("\\.py$" . python-mode)) (add-to-list 'interpreter-mode-alist '("python" . python-mode)) (add-hook 'python-mode-hook (lambda () (set (make-variable-buffer-local 'beginning-of-defun-function) 'py-beginning-of-def-or-class) (setq outline-regexp "def\\|class "))) ;;; 语法加亮 (global-font-lock-mode t) (setq font-lock-maximum-decoration t) ;; 回车后自动缩进 (add-hook 'python-mode-hook '(lambda() (local-set-key "\r" '(lambda() (interactive) (insert "\n") (python-indent-line))))) ;; Write TAB as 4 spaces. (setq python-mode-hook '(lambda () (progn (set-variable 'py-indent-offset 4) (set-variable 'py-smart-indentation nil) (set-variable 'indent-tabs-mode nil) ))) |
|
bruce.fine
2007-07-30
准备用vim,不过Tab键的空格我不会设,有谁知道怎么设吗?
|
|
我想我是海
2007-08-08
PyScripter
推荐。 其实我要求很简单,有自动完成、有Outline、高亮语法显示就OK了。 |
|
白发红颜
2007-08-29
我原来也准备在Windows下用Emacs写Python, 试了半天也不行.
|
|
njin
2007-12-13
支持vim的吐个泡泡
|
|
njin
2007-12-13
bruce.fine 写道 准备用vim,不过Tab键的空格我不会设,有谁知道怎么设吗?
~/vimrc里添加 set softtabstop=4 "tab建缩减设为4空格 set shiftwidth=4 "语法缩进设为4空格 |
|
rocwon
2007-12-13
兄弟我初学Python,用PythonWin
|
|
zxdsf
2007-12-13
eclispe
|
|
bluecrystal
2007-12-14
我用vim
老是不太习惯emacs 由于我还用java,所以很多时候eclipse+pydev也是不错的选择 |
|
Yeef
2008-01-30
eclipse
|