Hi all, I have a confusion on how to set the Isaac Sim or VSCode to make them fit together.
Here is the screenshoot of the editor.
It’s unable to link to the definition of the Variables, Functions and Classes via CTRL.
It may be the problem of .json file or some other configuration files, but I dont know how to set it.
That’s really a trouble for me during coding.
Can you help me with the issue above?
Hi @ShawnZhou997 - To enable IntelliSense (the feature that provides smart completions based on variable types, function definitions, and imported modules) in Visual Studio Code for Isaac Sim, you need to configure your settings properly. Here’s a general guide on how to do it:
- Open Visual Studio Code.
- Go to File > Open Folder and open the folder where your Isaac Sim project is located.
- Once the folder is open, go to View > Command Palette or press
Ctrl+Shift+P to open the Command Palette.
Python: Select Interpreter and select it. This will allow you to choose the Python interpreter to use for your project.
- In the Python interpreter selection, choose the Python interpreter that matches the one used by Isaac Sim. If you’re unsure, you can check the Python version used by Isaac Sim by running
python --version in the Isaac Sim terminal.
- Now, go to File > Preferences > Settings or press
Ctrl+, to open the Settings.
- In the Settings, search for
- Click on
Edit in settings.json and add the paths to the Isaac Sim Python libraries. It should look something like this:
/path/to/isaac-sim with the actual path to your Isaac Sim installation.
- Save the
settings.json file and restart Visual Studio Code.
After following these steps, IntelliSense should work properly with Isaac Sim in Visual Studio Code. You should be able to navigate to the definition of variables, functions, and classes by pressing
Ctrl and clicking on them.
Thank you. @rthaker
I’ve set the settings.json file as you adviced.
However, the VSCode still doesn’t work.
Take the omni.isaac.urdf for an example.
Here is the settings.json file.
“python.analysis.extraPaths”: [ ]
And what the urdf_import.py file in the corresponding directory shows is as below.
Can you help me with the issue?
Thank you again.
BTW, with or without “~/python”, VSCode shows the same.