是否可以从robot框架关键字转到python方法定义?

是否可以从robot框架关键字转到python方法定义?,python,visual-studio-code,robotframework,Python,Visual Studio Code,Robotframework,我想使用键盘快捷键从robot framwork文件中获取python方法。可能吗 机器人框架关键字: Check something Given I have my scenario configured When I configure something Then Something else happens Library myClass.py myClass.py上的Python方法: from robot.api.deco import keyword

我想使用键盘快捷键从robot framwork文件中获取python方法。可能吗

机器人框架关键字:

Check something
    Given I have my scenario configured
    When I configure something
    Then Something else happens

Library  myClass.py
myClass.py上的Python方法:

from robot.api.deco import keyword

class myClass(object):
    @keyword('I configure something')
    def i_configure_something(self):
        self.configure()
我会用小黄瓜解释我想要什么:p

Given I am using VS Code to edit my files
When I highlight the keyword "I configure something"
And I press F12
Then I want it to open my python file and go directly to the method definition.

是的,这是可能的。我们使用Intellibot插件。这是迄今为止我找到的最好的解决办法。在PyCharm中,我们可以使用
Ctrl+B


它也可以通过使用带有红色插件的Eclipse实现,但我不知道相同的快捷方式。

对于VSCode,我使用了。

我使用Pycharm超过2年,我使用了以下插件:

  • 机器人框架支撑
  • IntelliBot@SeleniumLibrary已修补(由于我们从Selenium2Library更改为SeleniumLibrary,所以也可以使用selenium关键字)

我应该使用什么配置?我的设置:“rLanguageServer.includePaths”:[“*/.robot”、“*/.rst”、“*/.py”]“files.associations”:{.rst:“robot”、“.robot:“robot”},它应该已经具有您希望的配置,请检查文档中的“Goto定义”和“查找所有引用”部分: