Slaesforce FAQ

how to comment in salesforce dev consoele

by Elmer Hintz Published 2 years ago Updated 2 years ago
image

Currently there is no keyboard shortcuts to comment the code. Following are the keyboard shortcuts aviable for developer console Open CTRL+O Open Lightning Resources CTRL+SHIFT+A Open log CTRL+G Open raw log CTRL+SHIFT+G Download log CTRL+ALT+G Save the current view CTRL+S

Both single and multiline comments are supported in Apex code.
  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 to control a Salesforce Org?

To control a Salesforce org, some of the options available to you are the Salesforce Extensions for Visual Studio Code, the Developer Console, and third-party developer tools like the ones that you can download from AppExchange. The Developer Console is connected to one org and is browser-based.

How can you steer your Salesforce Org toward customer success?

Luckily, your ship is powered by Salesforce, so you have a handy console where you can monitor and program your systems as you prepare to take evasive action. Similarly, you can steer your company’s Salesforce org toward customer success using the Developer Console.

What can Salesforce developer console do for your company?

You, as the commander of the spaceship, are responsible for your crew’s safety. Luckily, your ship is powered by Salesforce, so you have a handy console where you can monitor and program your systems as you prepare to take evasive action. Similarly, you can steer your company’s Salesforce org toward customer success using the Developer Console.

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.

image

How do I comment in Apex shortcut?

I can comment the code by standard way ("

How do I comment on a 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 comment in lightning?

Coming to the naming convention, the camel case naming convention is followed in the Lightning Framework. For markup, the HTML style of commenting is followed. If you want to comment on any logic in the controllers, you can use ( // ) for a single line, ( /* ) and ( */ ) for multiple line comments.

How do you comment in LWC?

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 add comments in Apex class?

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. For example:

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 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.

What is markup in lightning component?

Component resources contain markup and have a . cmp suffix. The markup can contain text or references to other components, and also declares metadata about the component.

How do you write comments in code?

Here are some rules to help you achieve a happy medium:Rule 1: Comments should not duplicate the code.Rule 2: Good comments do not excuse unclear code.Rule 3: If you can't write a clear comment, there may be a problem with the code.Rule 4: Comments should dispel confusion, not cause it.More items...•

How do you comment a div tag in HTML?

The stuff is the HTML comment. It is a way to add notes into the code which will not display when the HTML is rendered by the browser. In the example above, to signify which opening div tag the closing tag was actually closing.

What is Apex Doc?

ApexDoc is a java app that you can use to document your Salesforce Apex classes. You tell ApexDoc where your class files are, and it will generate a set of static HTML pages that fully document each class, including its properties and methods.

What is a developer console?

What Is the Developer Console? The Developer Console is an integrated development environment (more typically called an IDE) where you can create, debug, and test apps in your org. It’s your one-stop solution for a variety of development tasks.

What is the main pane in the developer console?

When you open the Developer Console for the first time, you see something like this. The main pane (1) is the source code editor , where you can write, view, and modify your code. The tabs pane (2) is where you can view logs, errors, and other information, and write queries to interact with the records in your org.

Can Lightning web components be developed in the Developer Console?

Lightning web components and Aura components can coexist and interoperate on a page. This content covers Aura components. You can’t develop Lightning web components in the Developer Console.

Does the Developer Console have conflict resolution?

The Developer Console doesn’t have version control or conflict resolution. To avoid overwriting other people’s code, be careful when you use the Developer Console in orgs that you share with your teammates.

image
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