This wiki does not contain official documentation and is currently deprecated and read only. Please try reading the documentation on the Liferay Developer Network, the new site dedicated to Liferay documentation. DISCOVER Build your web site, collaborate with your colleagues, manage your content, and more. DEVELOP Build applications that run inside Liferay, extend the features provided out of the box with Liferay's APIs. DISTRIBUTE Let the world know about your app by publishing it in Liferay's marketplace. PARTICIPATE Become a part of Liferay's community, meet other Liferay users, and get involved in the open source project. « Back to Liferay IDE
Liferay IDE Java Code Style Formatter profile
In Eclipse, the Source > Format menu item will format either the selected source code, or the whole file according to your current style settings.
You can get style settings that conform to the Liferay coding conventions by installing the Liferay IDE and activating its provided formatter profile.
- Menu: Project >> Properties
- Tree: Java Code Style > Formatter
- Check the box: Enable project specific settings
- Drop-down list: Active Profile
- Select the option: Liferay [plug-in]
17728 Views