Monday 28 March 2016

Fix Indentation: Developer Console

While writing is quite big piece of code, sometimes we can not keep the indentation 100% correct. Although it is always a good practice to write a good piece of code with correct indentation, but in case there is a scenario to fix the indentation then it is a very tedious job.

There is a very cool feature provided by Salesforce to Fix the indentation of Classes, Pages and Components.

Steps:

  • Open Developer Console
  • Open the Class or Pages using File option
  • Go to Edit and select "Fix Indentation"

  • Click on Save or CTRL + S, your code is 100% correct now.

It is very easy to use and excellent feature provided by Salesforce.


No comments:

Post a Comment