NativeScript Extension for Visual Studio Code
The NativeScript extension for Visual Studio Code aids your NativeScript project development within Visual Studio Code.
Note: The VS Code extension requires nativescript node module to be globally installed. If you are using nvm to manage your node versions, make sure that
nativescriptis installed in your default nodeJS version. To check which is your default node version execute 'nvm ls' on the command prompt and you should see something like 'default -> 5.5.0 (-> v5.5.0)' in the output.
Setup the extension
Create NativeScript application by running
tns create MyApp and open
MyApp folder in Visual Studio Code. Open the Debug Panel, click the gear icon
and choose NativeScript debug environment.
Debug your NativeScript application
To start the application with attached debugger, choose one of the launch configurations from the drop-down list and then click the start button.
NativeScript in the Command Palette and you will see all available commands.
There's only a couple of them but the list will grow in the future.
Run command triggers
tns run on emulator or device. You can run your app both on iOS and Android.
If your version of NativeScript is incompatible with the extension you will see a warning the first time you run a command.
Get the latest bits
Clone the extension repository:
git clone email@example.com:NativeScript/nativescript-vscode-extension.git
To build the extension run the following commands in the root repository folder:
To test the extension run the following commands in the root repository folder:
To install the extension drag and drop the
nativescript-*.*.*.vsixpackage in the VS Code.