![]() Each level of code should begin 1 tab stop further in than the level above. Usually we use key to indent, but most editors can be configured to insert spaces instead of actual tab characters. ![]() ![]() Some of features you need to keep in mind when you are coding Code Indentation This will be wrapped in tags to preserve whitespace or more lines that provide an overview of the param nameĪ description of what the parameter description of the return value from the code usage. The comment block is located in the lines above a method. In order for ApexDoc to identify class methods, the method line must contain an explicit scope (global, public, private, testMethod, webService). Sometimes its just a few lines of variables, but some snippets are. They should have section for input parameters and for Name : : Amit : method to is used to create : Output Every programmer, engineer, or computer science student works with code and takes notes. In Visual Studio Code, snippets appear in IntelliSense ( Ctrl+Space) mixed with other suggestions, as well as in a dedicated snippet picker ( Insert Snippet in the Command Palette). Method level Comment: All methods must have a section, describing what the method is designed to process. Snippets in Visual Studio Code Code snippets are templates that make it easier to enter repeating code patterns, such as loops or conditional-statements.author of the date the class was first group to display this class under, in the menu relative path to a static html file that provides content about the or more lines that provide an overview of the class Located in the lines above the class declaration. Class Level Comment: All Classes and Triggers should begin with a brief comment describing the functional.Means your code should be “self-documented”. When any developer look into your code he should understand what is going in your code easily. It will make the life easy for other developers and code reviewer.ĭifferent teams and projects may have different standards and when contributing to a project, you should follow your team and company standards. I have listed a few guidelines for Salesforce Developer to format the code. A good developer should strive to use a consistent layout and format. If you want to use an alternative UX to the default one, you can use, for instance: requiresnippets. In this post we will talk about code layout and formatting. The actual thing which controls the user experience (UX) of asking for input and advancing the snippet is called an inserter by me (because it inserts text by the end if the snippet completes). In our last post we talk about Naming convention in Salesforce.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |