Skip to content

Latest commit

 

History

History
217 lines (156 loc) · 9.73 KB

web_ide.md

File metadata and controls

217 lines (156 loc) · 9.73 KB
copyright lastupdated
years
2015, 2017
2017-6-9

{:new_window: target="_blank"} {:shortdesc: .shortdesc} {:screen:.screen} {:codeblock:.codeblock} {:pre: .pre}

Developing with the Eclipse Orion Web IDE

{: #web_ide}

The Eclipse Orion {{site.data.keyword.webide}} is a browser-based development environment where you can develop for the web. You can develop in JavaScript, HTML, and CSS with the help of content assist, code completion, and error checking. The {{site.data.keyword.webide}} works with nearly any language and offers syntax highlighting for most file types. Source control is built in, and you can deploy code locally to test and debug your apps. {:shortdesc}

Best of all, the {{site.data.keyword.webide}} is powered by the web. You have nothing to install, nothing to maintain, and nothing to scale. You can develop anywhere that you have an internet connection.

Setting up the IDE

{: #editorsetup}

The {{site.data.keyword.webide}} is customizable so that you can choose the color schemes, technical tools, and settings that meet your development needs. To view and modify the settings, from the menu on the left, click the Settings icon The settings icon.

If you often need to change certain settings while you edit, you can access those settings quickly from the Local Editor Settings icon Local Editor Settings icon.

Local Editor Settings

By default, the settings for the editor style and font size are always shown. To include other editor settings in the menu, follow these steps:

  1. Click the Local Editor Settings icon Local Editor Settings icon.

  2. Click Editor Settings.

  3. To include or exclude a setting from the Local Editor Settings menu, click the star for each setting.

Editor Settings toggle

Editing code

{: #editcode}

The {{site.data.keyword.webide}} has two main sections. The first section is the file navigator, which shows your project files in a tree structure. From the file navigator, you can create, rename, delete, and manage your files and folders.

Tip: To upload files to the file navigator, drag them from your computer to the file navigator.

The second section is the editor pane. The editor provides several coding features, including content assist and syntax validation.

Web IDE

Working with multiple files

  1. To work with two files at the same time, click the Change split editor mode icon Split Editor icon.
  2. From the menu that opens, select a view.

After you select a view, if a file was already open in the editor, it is shown in both editor views.

To open or change a file that is shown in one of the editor views:

  1. Move the cursor to the editor view that you want to change.
  2. In the file navigator, click a file.

Keyboard shortcuts

Many of the commands in the {{site.data.keyword.webide}} are accessible through keyboard shortcuts.

To see a list of the keyboard shortcuts in the editor, click Tools > Show keys. Alternatively, you can see the list by pressing Alt+Shift+?, or on MacOS, Ctrl+Shift+?. You can customize a shortcut by hovering over the key, clicking the pencil, and typing the new key binding.

Managing source code

{: #sourcecontrol}

The {{site.data.keyword.webide}} is integrated with source code management tools. To work with your Git repository, click the Git Repository icon The Git Repository icon.

Tip: If you are using the {{site.data.keyword.webide}} with open toolchains, your workspace is pre-populated with your GitHub, {{site.data.keyword.ghe_short}}, or Git Repos and Issue Tracking repos. The repos that are associated with your current toolchain are highlighted.

Deploying an app from your workspace

{: #deploy}

  1. To deploy your app, from the run bar, either select or create a launch configuration. Run bar
  2. Click the deploy icon The deploy icon. An instance of your app is deployed by using the current contents of your workspace and the environment that is defined in your launch configuration.
  3. After your app is deployed, you can use the run bar to stop, restart, or debug your app, view logs, and more.
The stop iconStop the app
The open app URL icon Open the deployed app
The view logs iconView the logs of the deployed app
The open dashboard iconOpen the app's Dashboard

If you are developing a Node.js app, enable Live Edit mode: The enable live edit slider

The Live Edit restart iconWith Live Edit mode enabled, restart the app quickly, without redeployment
The debug iconWith Live Edit mode enabled, access the debugger

Supported languages

{: #supported_languages}

The Eclipse Orion {{site.data.keyword.webide}} provides content assist, tooltips, previews, validation, and syntax highlighting for JavaScript, HTML, CSS, and Markdown files. Syntax highlighting is also supported for these file types:

  • Arduino
  • C
  • C#
  • C++
  • CoffeeScript
  • CSHTML
  • Embedded JavaScript (ejs)
  • Erlang
  • Go
  • HTML abstraction markup language (Haml)
  • Jade
  • Java
  • JSON
  • Less
  • Lua
  • Objective-C
  • PHP
  • Python
  • Ruby
  • Sass/SCSS
  • SQL
  • Swift
  • TypeScript
  • Visual Basic (vb)
  • VMHTML
  • XHTML
  • XML
  • XQuery
  • YAML
  • Launch file
  • Dockerfile
  • gitignore
  • git config
  • cfignore
  • properties

Take a tutorial: Eclipse Orion Web IDE

{: #toolchain_tutorials}

Check out one of these tutorials on the IBM® Cloud Garage Method External link icon{:new_window}: