Slaesforce FAQ

how to comment in salesforce developer console

by Hazel Yost Published 2 years ago Updated 2 years ago
image

What is the keyboard shortcut for commenting code in 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.
  • Save all CTRL+SHIFT+S.
  • Delete CTRL+DELETE.
  • Close CTRL+/.
  • Close all CTRL+ALT+/.

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

What is the developer console in Salesforce?

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.

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

image

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 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 I comment in Apex shortcut?

I can comment the code by standard way ("

How do I align codes in Salesforce Developer Console?

The Developer Console Source Code Editor includes an auto-complete feature for Apex code. Format Your Code Files: You can use the Prettier code formatter to format your Aura components in Developer Console. To prettify the code in an open file, select Edit | Fix Code Formatting. Or, press Ctrl+Alt+F.

What is VF page in Salesforce?

A Visualforce page is similar to a standard Web page, but includes powerful features to access, display, and update your organization's data. Pages can be referenced and invoked via a unique URL, just as they would be on a traditional web server. Visualforce uses a tag-based markup language that's similar to HTML.

How do I write a test class for a controller in Salesforce?

How to cover pagereference method in test class for Standard Controller:-First create record. Account acc = New Account(); acc.Name = 'Test Account'; INSERT acc;Page reference to your VF Page. ... Pass necessary parameter. ... Pass your object to controller. ... Call controller. ... Call pageRef mymethod. ... Put system asserts.

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

Who invented shortcut keys?

Larry Tesler created several of the keyboard shortcuts widely used today. Larry Tesler, the Silicon Valley pioneer who created the now-ubiquitous computer concepts such as "cut," "copy" and "paste," has died.

How do you Indent on Apex class?

Here is a simple steps to indent your code using the developer console.Click “Developer Console” from the Set up menu.Then Click File à Open à Classes à Select your class that you want to indent.Select all or just a section of code to indent.Press Shift + TAB.Save.

How do I format an apex class?

Steps to Enable Apex code formatting in Visual Studio CodeFirst, install the Prettier - code formatter.Now, check if you have package. ... Run the command npm install --save-dev --save-exact prettier prettier-plugin-apex. ... Restart Visual Studio Code.Once the installation is complete, we will do a few more steps.More items...•

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