# Using VSCode, how do I navigate to my robot file when I F12 or command click a python def

**URL:** <https://forum.robotframework.org/t/using-vscode-how-do-i-navigate-to-my-robot-file-when-i-f12-or-command-click-a-python-def/6255>\
**Category:** Visual Studio Code(ium)\
**Created:** [26 September 2023 17:29 UTC](https://forum.robotframework.org/t/using-vscode-how-do-i-navigate-to-my-robot-file-when-i-f12-or-command-click-a-python-def/6255 "2023-09-26T17:29:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gheeno](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/gheeno/32/3034_2.png) [@gheeno](https://forum.robotframework.org/u/gheeno)\
**Post date:** [26 September 2023 17:29 UTC](https://forum.robotframework.org/t/using-vscode-how-do-i-navigate-to-my-robot-file-when-i-f12-or-command-click-a-python-def/6255/1 "2023-09-26T17:29:02Z")

</div>

Description : As a user of PyCharm, when I perform a command click of a def, pycharm loads up the robot file that uses that function.

But in VSCode, when I F12 or command click a def, it does not go to the robot file. BUT when I do the reverse, I command click the same function in the Robot File, it refers the Python File that has the code.

VSCode extensions :

Pylance, Python, Robot Code

Settings.json

{  
“python.analysis.extraPaths”: [  
“/Users/user/pnut”  
],  
“python.defaultInterpreterPath”: “/Users/user/.pyenv/shims/python”  
}

---

<div class="post-metadata">

**Author:** ![robinmackaij](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/robinmackaij/32/126_2.png) [@robinmackaij](https://forum.robotframework.org/u/robinmackaij)\
**Post date:** [28 September 2023 16:40 UTC](https://forum.robotframework.org/t/using-vscode-how-do-i-navigate-to-my-robot-file-when-i-f12-or-command-click-a-python-def/6255/2 "2023-09-28T16:40:23Z")

</div>

In the right-click menu, there’s most likely a “find usage” or “go to definition” (with their shortcuts, if configured). You can also set your own shortcuts…I personally never did so, so google is your friend for that.
