Python 和智能感知

2022-01-20 00:00:00 python ide intellisense

问题描述

对于 Python 是否有等效于智能感知"的功能?

也许我不应该承认这一点,但我发现智能感知确实加快了学习一门新语言的发现阶段".例如,从 VB.net 切换到 C# 是一件轻而易举的事,因为片段和智能感知帮助了我.

解决方案


(来源:dispatched.ch)

这是 Vim 7 中的标准.在 Vim 中还有许多其他非常有用的 Python 开发插件,例如 Pyflakes 动态检查代码和 Python_fn.vim 提供了操作 python 缩进的功能 &代码块.

Is there an equivalent to 'intellisense' for Python?

Perhaps i shouldn't admit it but I find having intellisense really speeds up the 'discovery phase' of learning a new language. For instance switching from VB.net to C# was a breeze due to snippets and intellisense helping me along.

解决方案

This blog entry explains setting Vim up as a Python IDE, he covers Intellisense-like functionality:


(source: dispatched.ch)

This is standard in Vim 7. There are a number of other very useful plugins for python development in Vim, such as Pyflakes which checks code on the fly and Python_fn.vim which provides functionality for manipulating python indentation & code blocks.

相关文章