# How To Attach Makecode Typescript To Virtual Studio

**URL:** https://forum.makecode.com/t/how-to-attach-makecode-typescript-to-virtual-studio/16670
**Category:** Help
**Created:** [November 29, 2022, 5:08pm UTC](https://forum.makecode.com/t/how-to-attach-makecode-typescript-to-virtual-studio/16670 "2022-11-29T17:08:10Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![PixelDoodle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pixeldoodle/32/24129_2.png) [@PixelDoodle](https://forum.makecode.com/u/PixelDoodle)
#### Post date: [November 29, 2022, 5:08pm UTC](https://forum.makecode.com/t/how-to-attach-makecode-typescript-to-virtual-studio/16670/1 "2022-11-29T17:08:10Z")

</div>

This is sort of a funny question but, I want to import Typescript o Virtual Studio. Anybody Know How or if that’s even possible?

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [November 30, 2022, 5:45pm UTC](https://forum.makecode.com/t/how-to-attach-makecode-typescript-to-virtual-studio/16670/2 "2022-11-30T17:45:47Z")

</div>

**Visual Studio Code** is automatically supported out of the box by the [`pxt`](https://arcade.makecode.com/cli) program, you could possibly try that? (disclaimer: I never used it before, so I have no idea, but the description appears to suggest it can do that)

> It is possible to use the tools from the **pxt command line interface (CLI)**. `pxt` can:
> 
> - Edit, compile or deploy JavaScript programs.
> - Easily integrate into most IDEs. It comes with built-in support for [Visual Studio Code](https://arcade.makecode.com/code).
> - Run a local web server for the web editor.
> - Author extensions using JavaScript and/or C++.
> 
> Using the PXT CLI assumes that you have some experience with programming and will require installation of additional tools on your machine.

Never heard of “Virtual Studio” before though, do you mean Visual Studio?

---

<div class="post-metadata">

### Author: ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)
#### Post date: [November 30, 2022, 5:54pm UTC](https://forum.makecode.com/t/how-to-attach-makecode-typescript-to-virtual-studio/16670/3 "2022-11-30T17:54:34Z")

</div>

Uhh- what is Virtual Studio again? Did you mean _Visual studio_?

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [November 30, 2022, 6:05pm UTC](https://forum.makecode.com/t/how-to-attach-makecode-typescript-to-virtual-studio/16670/4 "2022-11-30T18:05:52Z")

</div>

@PixelDoodle it sure is! It will require to use the terminal, however. If that doesn’t scare you off, here are the steps you can use:

1. Install [https://nodejs.org/en/](https://nodejs.org/en/)
2. Open the terminal of your choice
3. Install the `makecode` CLI:  
`npm install makecode -g`
4. Navigate to the folder where you want to create your project:  
`cd path/to/directory/`
5. Create your project:  
`makecode init arcade`
6. Install your dependencies:  
`makecode install`
7. Open VSCode:  
`code .`
8. Start the makecode simulator:  
`makecode serve`
9. In a browser, open up the url that is printed in the console ([http://127.0.0.1:7001](http://127.0.0.1:7001))

Now you can code your project in vscode and every time you save a file, the game in the browser will automatically refresh.

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [November 30, 2022, 6:06pm UTC](https://forum.makecode.com/t/how-to-attach-makecode-typescript-to-virtual-studio/16670/5 "2022-11-30T18:06:37Z")

</div>

ooof, we should update those docs. The `makecode` CLI is much, much, easier to use than the `pxt` one

---

<div class="post-metadata">

### Author: ![PixelDoodle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pixeldoodle/32/24129_2.png) [@PixelDoodle](https://forum.makecode.com/u/PixelDoodle)
#### Post date: [November 30, 2022, 6:07pm UTC](https://forum.makecode.com/t/how-to-attach-makecode-typescript-to-virtual-studio/16670/6 "2022-11-30T18:07:11Z")

</div>

yep… typing error sorry.

---

<div class="post-metadata">

### Author: ![PixelDoodle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pixeldoodle/32/24129_2.png) [@PixelDoodle](https://forum.makecode.com/u/PixelDoodle)
#### Post date: [November 30, 2022, 6:08pm UTC](https://forum.makecode.com/t/how-to-attach-makecode-typescript-to-virtual-studio/16670/7 "2022-11-30T18:08:31Z")

</div>

Woah. That is a confusing process.

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [November 30, 2022, 6:09pm UTC](https://forum.makecode.com/t/how-to-attach-makecode-typescript-to-virtual-studio/16670/8 "2022-11-30T18:09:14Z")

</div>

Yeah, it’s mainly targeted at professional devs right now. I’m working on making it easier, though!

---

<div class="post-metadata">

### Author: ![isoffline](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/isoffline/32/8791_2.png) [@isoffline](https://forum.makecode.com/u/isoffline)
#### Post date: [November 30, 2022, 10:02pm UTC](https://forum.makecode.com/t/how-to-attach-makecode-typescript-to-virtual-studio/16670/9 "2022-11-30T22:02:20Z")

</div>

can i do this in Linux?

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [November 30, 2022, 10:03pm UTC](https://forum.makecode.com/t/how-to-attach-makecode-typescript-to-virtual-studio/16670/10 "2022-11-30T22:03:48Z")

</div>

yup! sure can!
