Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Configuring the IDE

Anuruddha edited this page Mar 23, 2015 · 1 revision

When you are developing components for AppFactory, you should always follow the coding standards. In order to automate this process, you can configure your IDE to perform some formatting related tasks automatically.

Intelij IDEA

Create a code style called wso2-codestyle, close the IDE, and then replace ~/.IntelliJIdea90/config/codestyles/wso2-codestyle.xml with the one attached

Eclipse

In Eclipse, we use Code Templates to configure IDE. There are 2 Templates as,

  1. Code Cleanup Template
  2. Code Formatting Template

In Order to apply these templates, follow the steps given below.

  1. Window -> Preferences
  2. Java-> Code Style
  3. Select Clean up option in the preference page and point to the WSO2_Eclipse_Code_Cleanup.xml.
  4. Select Formatter option in the preference page and point to the WSO2_Eclipse_Code_Formatter.xml.