Slaesforce FAQ

how to comment the code in salesforce

by Mozelle Oberbrunner Published 2 years ago Updated 2 years ago
image

The best solution would be to copy/paste the code into the description box and above and comment there. I know the question is old, but people may find the question (with no answer yet) as they search on the internet. This is possible by using the /* some comment */ syntax inside the formula field.

Comments
  1. To create a single line comment, use // . All characters on the same line to the right of the // are ignored by the parser. For example: ...
  2. To create a multiline comment, use /* and */ to demarcate the beginning and end of the comment block. For example:

Full Answer

How do I add a comment in Apex code?

Both single and multiline comments are supported in Apex code. To create a single line comment, use // . All characters on the same line to the right of the // are ignored by the parser. For example: To create a multiline comment, use /* and */ to demarcate the beginning and end of the comment block.

How to write code offline in Salesforce with Sublime?

It's better to use sublime editor for more flexibility and write code in offline also without getting error. Use Sublime + mavenmate or simply copy to sublime editor then copy it back to console. One of the simplest keyboard shortcuts is logging out of Salesforce. Let's set it up.

How to set up keyboard shortcuts in Salesforce console?

Use Sublime + mavenmate or simply copy to sublime editor then copy it back to console. One of the simplest keyboard shortcuts is logging out of Salesforce. Let's set it up. a)First, go to the Keyboard Shortcuts setup page for your Console and via Setup-> Create-> Apps-> Your Console -> "Customize keyboard shortcuts"-> Edit.

How do I create a comment on a single line line?

To create a single line comment, use // . All characters on the same line to the right of the // are ignored by the parser. For example: To create a multiline comment, use /* and */ to demarcate the beginning and end of the comment block.

image

How do you add a comment in Salesforce?

Click New on the Cases tab to create a case, or select an existing case and click Edit.Type your comments in Internal Comments .Optionally, select Send Customer Notification to email the contact on the case of your new public comment.Click Save.

How do I comment in Salesforce lightning?

0:030:32How to add comments to a task in Salesforce Lightning - YouTubeYouTubeStart of suggested clipEnd of suggested clipTo a task in Salesforce lightning log into Salesforce lightning an open sales application go toMoreTo a task in Salesforce lightning log into Salesforce lightning an open sales application go to tasks click on edit. Comments.

How do I add comments in SOQL?

Every computer language written in the last 30-40 years has some sort of comment sequence. For example, in man dialects of SQL, you can use either /* ... */ or -- to the end of line.

How do I comment out code in VF page?

Visualforce doesn't evaluate anything enclosed within standard HTML comments ( ), whether the comments are single line or multiline. For non-Internet Explorer comments, the Visualforce compiler replaces the contents of the HTML comment with asterisks.

How do you put a comment in HTML?

In HTML, a comment is text enclosed within < ! ╌ ╌> tags. This syntax tells the browser that they are comments and should not be rendered on the front end. Thanks to the comments tag, you can leave notes to remind yourself where you left off in the build process.

How do you comment in LWC in HTML?

To preserve the performance of the existing components, we propose to introduce two options to enable comments:A new boolean attribute ( lwc:preserve-comments ) to the root template tag in the component template; false by default.A new compile option ( preserveHTMLComments ) in the template compiler; false by default.

What is comment in Salesforce?

The comments can be used to provide additional information about the variable, method, class or any other statement. Types of Apex Comments. There are two types of comments in Apex. Single Line Comment.

How do I query notes in Salesforce?

You can query them simply: List notes = [SELECT Id FROM Note WHERE ParentId = :myRecord]; List attachments = [SELECT Id FROM Attachment WHERE ParentId = :myRecord];

How do I use SOQL query in Salesforce?

Execute a SOQL Query or SOSL SearchEnter a SOQL query or SOSL search in the Query Editor panel.If you want to query tooling entities instead of data entities, select Use Tooling API.Click Execute. ... Warning If you rerun a query, unsaved changes in the Query Results grid are lost.

How do I comment in Salesforce Developer Console?

I can comment the code by standard way ("

How do I use Apex in Salesforce?

From Setup, enter Apex Classes in the Quick Find box, then select Apex Classes. See Manage Apex Classes. A trigger is Apex code that executes before or after specific data manipulation language (DML) events occur, such as before object records are inserted into the database, or after records have been deleted.

How do I learn apex in Salesforce?

Here is my list of 4 recommended resources and strategies for learning the real basics to help you maximize your chances of mastering Apex.Deepika Khana (Udemy and YouTube) ... Apex Academy (Pluralsight) ... Parikshith M (Youtube) ... System dot Debug (Youtube) ... Important Apex Tools. ... Get the Right Attitude for Apex.More items...•

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9