Quantcast
Channel: JetsonHacks
Viewing all articles
Browse latest Browse all 339

Visual Studio Code

$
0
0

Microsoft now supports ARM 64 machines like the NVIDIA Jetsons and Raspberry Pi within Visual Studio Code. Looky here:

Background

Last year we did an article on installing Visual Studio Code using a community build. While this is great, Microsoft now supports ARM 64 builds directly. In addition in the newest release, Microsoft also adds the C/C++ programming extensions for ARM/ARM64!

Visual Studio Code is probably the most popular programming tool on the planet, and for good reason. It’s free, and supports a very large ecosystem of programming languages and extensions. While aimed at web and cloud development, most people find that other development tasks are easier too.

Installation

One easy way to install Visual Studio Code is to go to the Visual Studio Code site, download the .deb for ARM 64, and install it. Just remember to find the ‘Other platforms’ link to take you to the place to download the ARM 64 version. Many of the buttons labelled ‘Download’ download the x86 version of Visual Studio Code (this is for a PC), make sure you find the ARM 64 version (see the video if you need a better description).

There is great documentation for both installing Visual Studio Code and getting started. This includes video tutorials and a large number of articles for use. Certainly a page worth checking out.

The ARM 64 version runs on the NVIDIA Jetson Nano 2GB, Jetson Nano, Jetson AGX Xavier, Jetson Xavier NX, Jetson TX1 and Jetson TX2. The Jetson TK1 requires the ‘ARM’ version (32 bit), though we have not tested the Jetson TK1 with Visual Studio Code.

If you are looking to script the installation, on the JetsonHacksNano account on Github, there is a repository installVSCode. There are two scripts. The first script, installVSCode.sh, will simply download Visual Studio Code and install it. The second script, installVSCodeWithPython.sh, will download Visual Studio Code, install it, and then download and install the Microsoft Python extension, along with some Python support libraries.

To clone the repository and install VSCode:

$ git clone https://github.com/JetsonHacksNano/installVSCode.git
$ cd installVSCode
$ ./installVSCode.sh

To clone the repository and install VSCode with Python support:

$ git clone https://github.com/JetsonHacksNano/installVSCode.git
$ cd installVSCode
$ ./installVSCodeWithPython.sh

Modify the scripts to suit your development needs. In particular, the Python install script gives an example on how to install an extension from the command line:

$ code –install-extension ms-python.python –force

The name of the extension can be found by looking up the extension in the extension manager of Code.

Conclusion

If you program a lot on your Jetson, Visual Studio Code is worth checking out. This is especially true if you use different languages, as you can hop back and forth between them and maintain the same programming development environment.

The post Visual Studio Code appeared first on JetsonHacks.


Viewing all articles
Browse latest Browse all 339

Trending Articles