Most of the
Salesforce developer who are not using the Developer Console may not aware how to Indent
/ align the code. They generally go for external site or
applications to intend their code.
If you write Apex
class / Apex Trigger / Visualforce page using the normal User Interface, then
you code is not auto formatted as well when reading the code is very ridiculous.
The coding should always readable to everyone for this you need to indent your
code. We can indent the coding using Developer Console.
Here is a simple steps to indent your code using the developer console.
1.
Click “Developer Console” from the Set
up menu.
3.
Select all or just a section of code
to indent
5.
Save
That’s it...! Your code is Indented now...!
Thanks... It helped me.
ReplyDeletePretty cute. Unfortunately it kinda leaves these types of comments mangled:
ReplyDelete/*
First step is to create a context for PSI_LREngine, by specifying parent and child objects and
lookup relationship field name
*/
Actually this page mangled my mangled comment. The first '/*' is indented 8 spaces or so and the rest of the comment including the ending '*/' starts in column 1.
ReplyDeleteHelpful !!
ReplyDeleteThanks
Nice knowledge gaining article. This post is really the best on this valuable topic. salesforce
ReplyDeleteThanks for taking the time to discuss that, I feel strongly about this and so really like getting to know more on this kind of field. Do you mind updating your blog post with additional insight? It should be really useful for all of us. buku mimpi
ReplyDeleteIt helps in business process standardization ensuring that you can carry out proper salesforce training. salesforce interview questions
ReplyDelete