You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**This is optional. You do not need to use VScode to use Isaac Lab**
6
+
Editor setup is optional and is not required to run Isaac Lab. The repository
7
+
includes shared settings for `Visual Studio Code <https://code.visualstudio.com/>`_
8
+
and compatible editors such as `Cursor <https://www.cursor.com/>`_. Complete one
9
+
of the :ref:`Isaac Lab installation methods <isaaclab-installation-root>` before
10
+
configuring your editor.
7
11
8
-
`Visual Studio Code <https://code.visualstudio.com/>`_ has proven an invaluable tool for the development of Isaac Lab. The Isaac Lab repository includes the VSCode files for setting up your development environment. These are included in the ``.vscode`` directory and include the following files:
12
+
The ``.vscode`` directory contains the checked-in templates and tasks:
9
13
10
14
.. code-block:: bash
11
15
@@ -15,58 +19,123 @@ Setting up Visual Studio Code
15
19
│ ├── settings.template.json
16
20
│ └── setup_vscode.py
17
21
├── extensions.json
18
-
├── launch.json #<- this is generated by setup_vscode.py
19
-
├── settings.json #<- this is generated by setup_vscode.py
22
+
├── launch.json # generated by setup_vscode.py
23
+
├── settings.json # generated by setup_vscode.py
20
24
└── tasks.json
21
25
26
+
Configure a source checkout
27
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^
22
28
23
-
.. attention::
29
+
Open the Isaac Lab repository root in your editor. Then run the setup command
30
+
that matches your installation from a terminal in that directory.
24
31
25
-
The following instructions on setting up Visual Studio Code only work with
26
-
:ref:`Isaac Sim Binaries Installation <isaaclab-binaries-installation>` and not with
27
-
:ref:`Python Environment with Isaac Sim <installation-method-python-env>`.
32
+
.. tab-set::
28
33
34
+
.. tab-item:: uv (recommended)
29
35
30
-
To setup the IDE, please follow these instructions:
36
+
For the default Newton environment, run:
31
37
32
-
1. Open the ``IsaacLab`` directory on Visual Studio Code IDE
33
-
2. Run VSCode `Tasks <https://code.visualstudio.com/docs/editor/tasks>`__, by
34
-
pressing ``Ctrl+Shift+P``, selecting ``Tasks: Run Task`` and running the
35
-
``setup_python_env`` in the drop down menu.
38
+
.. code-block:: bash
36
39
37
-
.. image:: ../../_static/vscode_tasks.png
38
-
:width:600px
39
-
:align:center
40
-
:alt:VSCode Tasks
40
+
uv run python .vscode/tools/setup_vscode.py
41
41
42
+
If you use Isaac Sim from the ``isaacsim`` extra, include the extra so the
43
+
setup command can discover its extensions:
42
44
43
-
.. note::
44
-
If this is your first time running tasks in VS Code, you may be prompted to select how to handle warnings. Simply follow
45
-
the prompts until the task window closes.
45
+
.. code-block:: bash
46
46
47
-
If everything executes correctly, it should create the following files:
47
+
uv run --extra isaacsim python .vscode/tools/setup_vscode.py
48
48
49
-
* ``.vscode/launch.json``: Contains the launch configurations for debugging python code.
50
-
* ``.vscode/settings.json``: Contains the settings for the python interpreter and the python environment.
51
-
* ``pyrightconfig.json``: Contains machine-local import paths for Pyright-compatible language servers.
49
+
.. tab-item:: Activated Python environment
52
50
53
-
.. note::
51
+
Activate the uv, venv, or conda environment where Isaac Lab is installed,
52
+
then run:
54
53
55
-
Type information for the in-repository Isaac Lab packages (``isaaclab``, ``isaaclab_tasks``, ...)
56
-
works before running this task because their source roots are registered in ``pyproject.toml``.
57
-
The task generates a git-ignored ``pyrightconfig.json`` that inherits those settings and adds the
58
-
Isaac Sim extensions (``omni.*``, ``pxr.*``, ``isaacsim.*``) plus Isaac Lab packages discovered
59
-
in the active Python environment. This also supports editable and wheel installations.
54
+
.. code-block:: bash
60
55
61
-
.. note::
56
+
python .vscode/tools/setup_vscode.py
62
57
63
-
**Using Cursor?** Cursor cannot run Pylance (it is licensed for official VS Code builds only), so
64
-
install the `basedpyright <https://marketplace.visualstudio.com/items?itemName=detachhead.basedpyright>`__
65
-
extension (``detachhead.basedpyright``) as the language server. It reads the same Pyright
66
-
configuration, so Isaac Lab type information works there without any extra setup.
58
+
.. tab-item:: Downloaded Isaac Sim package
67
59
68
-
For more information on VSCode support for Omniverse, please refer to the
69
-
following links:
60
+
Run the setup script through the Isaac Lab launcher after completing the
0 commit comments