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?
Visual Studio Code is automatically supported out of the box by the pxt
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.
- 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?
Uhh- what is Virtual Studio again? Did you mean Visual studio?
@JavaDoodle 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:
- Install https://nodejs.org/en/
- Open the terminal of your choice
- Install the
makecode
CLI:
npm install makecode -g
- Navigate to the folder where you want to create your project:
cd path/to/directory/
- Create your project:
makecode init arcade
- Install your dependencies:
makecode install
- Open VSCode:
code .
- Start the makecode simulator:
makecode serve
- In a browser, open up the url that is printed in the console (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.
ooof, we should update those docs. The makecode
CLI is much, much, easier to use than the pxt
one
yep… typing error sorry.
Woah. That is a confusing process.
Yeah, it’s mainly targeted at professional devs right now. I’m working on making it easier, though!
can i do this in Linux?
yup! sure can!