# Setup VSCode for Dynamo/Revit

**URL:** <https://forum.dynamobim.com/t/setup-vscode-for-dynamo-revit/65315>\
**Category:** Developers\
**Tags:** revit, python, dynamo\
**Created:** [June 19, 2021, 10:44am UTC](https://forum.dynamobim.com/t/setup-vscode-for-dynamo-revit/65315 "2021-06-19T10:44:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zvith](https://avatars.discourse-cdn.com/v4/letter/z/65b543/32.png) [@zvith](https://forum.dynamobim.com/u/zvith)\
**Post date:** [June 19, 2021, 10:44am UTC](https://forum.dynamobim.com/t/setup-vscode-for-dynamo-revit/65315/1 "2021-06-19T10:44:51Z")

</div>

Hello,  
I have Issues running code for Dynamo/Revit libraries on VSCode.  
Long story short, using the python interpreter (version 2.7.18) the intellisense autocompletes the the Revit/Dynamo modules but the debugger doesn’t pick up the clr.

When setting the interpreter to IronPython, it doesn’t recognize both the intellisense autocomplete of basic python modules or the clr, and doesn’t debbug.

Anybody know how to fix this? This is the most I managed to progress in the issue after quite a lot of time put into it.  
PS the IronPython IDE does work and recognize the clr module.

> **Python interpretor**
>
> ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/5/551aa934d52f0ec043c7970352fef9387df6d577.png)  
> Version of python.
> 
> ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/f/9fdb18bfe85fa360a40ca4d09a7e1b46f78687a3.png)  
> Intellisense autocomplete recognizes the clr module.  
> ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/9/396d00d8c4fc1a1f5dbdd5dba08999b7581a9e39.png)  
> The debbuger does not recognize the clr module.  
> ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/f/3f5f4243e2a44b268934cc617fdc9c076852a2aa.png)  
> Json Settings

> **IronPython Interpreter**
>
> ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/3/93323d574b4813a7162e3e010d881506dea454d1.png)  
> Does not recognize “import” command.
> 
> ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/6/06920c2f2bbdbb890204ac15d5050b1e30a3f316.png)  
> Doesn’t import the clr library.
> 
> ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/1/e117f89c84870fddea3eda5189ccc717c71a9dda.png)  
> Json settings

> **IronPython IDE**
>
> ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/6/96921d1454198268250eb0f958daa38b0c282120.png)  
> IDE imports clr
> 
> ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/d/1d9a83acbd5dd734b7d619142aecba63869be7c9.png)  
> Same path to ide as with the IronPython interepreter on VSCode.

---

<div class="post-metadata">

**Author:** ![zefreestijl](https://avatars.discourse-cdn.com/v4/letter/z/b5a626/32.png) [@zefreestijl](https://forum.dynamobim.com/u/zefreestijl)\
**Post date:** [July 29, 2021, 12:23am UTC](https://forum.dynamobim.com/t/setup-vscode-for-dynamo-revit/65315/2 "2021-07-29T00:23:58Z")

</div>

Hi,

> [@Python autocomplete?](https://forum.dynamobim.com/t/python-autocomplete/12671):
>
> Hello guys, ^python noob here^ I don’t know if I’m missing something but Autocomplete in the Python Script editor in Dynamo doesn’t seem to be as good/intuitive as it is in the Code Block. It’s just super cool that I can type “Curve” in the Code Block and get all the relative suggestions to work out from there, then after a . we get all the others. I find myself going back to the codeblock to test out piece of script and copy-pasting it back to Python Script editor in order for it to work and no…

according to this post, you have to append folders to your system.

> <https://github.com/gtalarico/ironpython-stubs/tree/master/release/stubs.min>
>
> //github.com/gtalarico/ironpython-stubs/tree/master/release/stubs.min

after you’ve downloaded the libraries you want to refer,  
either simply add a system path into your script,  
or add them to the python settings:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/b/8bc525c51ca6b68e60d807b086cf27857d5eb46b.png)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/9/f94313b274716f1b8fa48e6101ffac22065b67b7.png)
