Create Your Tizen Web App On Visual Studio Code
developers that want to create apps for galaxy watch have traditionally used tizen studio for their work. tizen studio consists of an ide, emulator, toolchain, sample code, and documentation and can run on windows, mac and linux. it allows one to develop native and web applications. the tizen development process also allows the developer to build an app using the command line interface (cli), without relying on official tizen studio. however, to develop a .net application, developers need to install visual studio. recently, tizen also started supporting visual studio code, or vs code, for developing tizen web apps through a visual studio code extension. this extension provides features such as preview, javascript assistant, structure view, new page, html assistant, undo, and redo. the extension also offers intellisense, a popular feature of visual studio, which displays a list of recommended values when specifying attributes or apis and displays a description of an attribute or an api when you hover the mouse over that attribute or api. today, we will see how to set up the environment for developing tizen web app in visual studio code. in the future blogs, i will cover running your app on real device or emulator, certificate management, wysiwyg design editor and intellisense. let’s get started. prerequisites visual studio code extension for tizen support oracle java development kit (jdk) 8 or openjdk 12 to use tizen baseline sdk tizen baseline sdk node.js setting up your environment start the visual studio code development environment and follow these steps. step 1 in the activity bar of vs code, click on extensions and in the search bar, type tizen web. click install and it will start the installation of the extension. it will install three extensions pack consists of wappl for baseline sdk, taurine for tau, design editor for wysiwyg design editor. step 2 in vs code, click view > command palette. then type ‘tizen web: change tizen sdk path’ and click on ‘tizen web: change tizen sdk path’ after it appears. step 3 as the path is not set, it should show ‘null’. click on “change path”. step 4 after clicking on “change path”, a dialog appears to submit the tizen sdk path. in this case, “c:\tizen-studio” is the default path on windows and will be used here. step 5 in the input field of the command palette that appears, type “tizen web: install tizen baseline sdk” and press enter. step 6 if you have already installed tizen studio, click on ‘yes’. if you have not installed, after clicking on ‘no’, it will allow you to install. project creation now, the visual studio code for tizen web is ready for development. let’s create a project. step 1 in the command palette search box, type ‘tizen web: create wizard project’ step 2 click on ‘new project’ as shown below, step 3 create a project from template for example. you can also check the sample apps. step 4 select ‘wearable’ to create a project for galaxy watch and then select tizen 4.0 as the target version. step 5 select ‘tau basic’ template. however, there are other options like: basic ui project, tau list and ime template. you can get more about tizen advance ui(tau) here. step 6 define a project name desired package id and finally click on ‘finish’ button. at this point, your project is ready to develop in vs code. conclusion in this article, an example is shown of setting up the environment of tizen web in visual studio code. so far, the new tizen web experience with vs code seems great. the rich features in vs code, such as the drag and drop design editor and intellisense, are quite impressive. if you have any question regarding this, please feel free to ask questions in the samsung developer forums.