The Samsung TV SDK IDE provides a developer-friendly environment and tools to improve development quality and minimize development time. This topic describes the main features of the Samsung TV SDK IDE.
The Samsung TV SDK IDE Web Editor is a powerful tool for creating and modifying source code. It supports all basic coding features, such as syntax highlighting, content assist, and privilege checking.
The Web Editor provides support for JavaScript, HTML, and CSS file editing.
The following figure illustrates the parts of the Samsung TV SDK IDE interface.

Figure 1. Samsung TV SDK IDE interface
The Samsung TV SDK IDE interface is composed of a set of views:
You can customize the IDE by modifying which views are shown.
To add more views to the IDE:
In the Samsung TV SDK IDE menu, select "Window > Show View > Other".

Figure 2. Show View dialog
Select the view you want and click "OK".
Adjust the position of the view by dragging and dropping it into any of the panes in the IDE. To remove a view, click "x" on its title tab, or right-click the title tab and select "Close".
The Samsung TV SDK IDE provides tools for writing and editing code.
Syntax checking tools help you identify and correct problems with the structural quality of your code.
There are 2 ways to inspect your code:
Manual check
Note
You can check JavaScript immediately, even without saving the file.

Figure 3. Checking JavaScript rules manually

Figure 4. JavaScript scan results in the Problems view
Automatic check
When writing code, if there are syntax errors, the automatic check displays the CSSLint or JSLint validator results on the left edge of the editor.

Figure 5. Checking JavaScript automatically
When you save a file, the project is built and the syntax is checked automatically.
If you want to adjust the error level settings for the CSS or JavaScript Validator, go to "Window > Preferences > Tizen Studio > Web > Editor > CSS Editor" or "JavaScript Editor".
By default, the CSS or JavaScript syntax check is run when a document is saved or the project is built. However, you can configure the details in the preferences. To change the inspection point, adjust it in the "CSS Editor" or "JavaScript Editor" tab:
For more information, see CSSLint and JavaScriptLint.
Content assist is a functionality provided in parts of the Samsung TV SDK Web Editor to help you write code faster and more efficiently.
Content assist allows you to quickly type names in the context of HTML, CSS, and JavaScript code. For example, you can simply type the first letters, and press "Ctrl + Space" to get suggestions for element and attribute properties that match the entered letters and are valid for the current context (class name, interface name, variable, or field names). If you mistype a name, content assist displays an error.
The Samsung TV SDK IDE supports Web API, W3C API, jQuery API, and jQuery Mobile API. The content assist functionality can be expanded with support for user-defined and third party APIs.

Figure 6. Content assist for CSS
For more information, see Content Assist.
The Samsung TV SDK IDE Web Preferences tool allows you to set the Web preferences, which are a set of options, such as resources, file colors, version control options, and code styles. The preferences allow you to configure the workspace to optimize your working environment.
For more information, see Setting Tizen Studio Web Preferences.
The Tizen Web application configuration file is composed of XML elements, including the <widget> element as its root. These elements represent the application information, such as configuration elements and Tizen-specific configuration elements for TV applications.
The configuration information is used when you install or run the Tizen Web application. The Tizen Web application project must have the "config.xml" file in the project root directory.
The configuration file can be easily edited with the Web Configuration Editor (form editor), or you can modify the XML structure directly using the configuration source editor. With the form editor, you can set the project configuration (manifest), even if you have no experience in developing a Tizen Web application project. If you are fluent with the configuration file XML structure, you can create the configuration file directly through the configuration source editor.
For more information, see Configuring Applications.
The Samsung TV SDK IDE provides tools to help you debug and test your applications.
The "JavaScript Log Console" view is a tool that helps you to debug the application through log analysis. You can use the tool with the JavaScript Console API when developing Web applications. The "JavaScript Log Console" view is active only in the "Debug" launch mode.
You can use JavaScript console methods to show log information for your application in the "JavaScript Log Console" view.
| Method | Example |
|---|---|
console.log |
console.log("console.log"); |
console.info |
console.info("console.info"); |
console.warn |
console.warn("console.warn"); |
console.error |
console.error("console.error"); |
console.debug |
console.debug("console.debug"); |

Figure 7. JavaScript log method colors
The Code Beautifier is a tool that can help you understand code and make it easier to read.
The Code Minifier is a smart compression tool. Minification is the process of compressing code from the original size to the smallest size without affecting its operation.
For more information, see Cleaning Up Your Code.
The Privilege Checker tool allows you identify potential privilege violation problems in the application code. This check is performed automatically, and you can easily verify the source code in your project.
For more information, see Verifying Privilege Usage.
You can run and test your application on an emulator imitating the target environment, or on a real target Tizen device.
The TV emulator imitates the target environment running Tizen Web applications. You can test your application in this replicated environment before deploying it to a real target device.
The emulator is a virtual machine that closely resembles a real TV software stack.
For more information, see TV Emulator.
If you have tested your application on the emulator, it is ready for uploading and testing on a target TV device.
Even though it is possible to complete most application testing on the emulator, it is highly recommended that you also test your application on a target device. The emulator and the TV environments are very similar but there are some differences at the hardware level.
Before installing and running apps on a target TV device:
For more information, see Running Applications on TV.