0

In our ansible role ,there is a main file which calls tasks from multiple files. One of the sample task is given below

- name: Delete folder
  include_tasks: folder_delete.yml
  vars:
     folder: "{{folder_name}}"

If i need to go to the file folder_delete.yml thne currently i am copying the file name folder_delete then use Ctrl+p then in it i am copying and open the file.

In other languages , If we click on function and click f12 ,it will go to definition. Like that in ansible extension ,is there any way to go to the file by using some shortcut? I am opening files many times, a shortcut will be a great help

Or is there a way to write that in some macro ?

4

1 回答 1

0

我自己找到了答案,但将其记录下来以供将来的用户使用。

我使用了Openfileatcursor扩展名。我选择文件并键入,alt+d然后它会以快速打开的方式显示。从那里我可以打开它。这对我有很大帮助。

还有另一个扩展名为Openfile. 这更有用,我必须选择文件名并键入Alt+p它将打开文件

于 2019-09-12T13:15:31.323 回答