在Komodo Edit上按Ctrl+Space时,是否有一个选择列表?

2024-05-16 23:27:44 发布

您现在位置:Python中文网/ 问答频道 /正文

我不熟悉Komodo Edit/Python。我想知道为什么Komodo有时会给我一个单词列表来自动完成我当前的单词,而在其他时候,它什么也不给我,或者它会自动完成我当前的单词而不询问我(即使有多个选择)

有没有办法告诉Komodo在按Ctrl+Space时总是给我一个选择列表(就像visualstudio的行为一样?)你知道吗

def TestMethod():
    return 1
def TestSecondMethod():
    return 2

Test #It doesn't show me the intellisense

TestSecondMethod #When I press Ctrl+Space, it autocomplete
                 #(without asking me) my word by entering
                 #the name of the second method

Tags: thetest列表returndefspace单词edit
1条回答
网友
1楼 · 发布于 2024-05-16 23:27:44

Komodo(IDE或Edit)似乎对Python没有很好的智能感知,所以我最终使用了PyCharm社区版,这个IDE工作起来很有魅力。你知道吗

它很容易配置和自动完成总是工作,是快速显示(相比科莫多的)

Komodo提供了改变Ctrl+Space的行为以使用自动完成行为的可能性,但是它仍然没有按照我想要的方式工作,因为它并不总是显示,当它显示时,它会缓慢地显示

您可以通过以下方式更改密钥绑定首选项:

Edit > Preference > Editor > Key Bindings > 
    change the command "Editor : Trigger preceding AutoComplete list or CallTipe" key sequence to be "Ctrl + Space" 
    the Ctrl+Space is normally assigned to the "Code : Complete Word" command

但是任何使用Python的人都应该尝试一下Pycharm。你知道吗

相关问题 更多 >