+ Start a Discussion

What is the keyboard shortcut for commenting code in developer console?

Hello Friends,
I have this  below code.
<apex:page standardController="Account">
    {! Account.Name }
    {! Account.Phone}
I can comment the code by standard way (" <!-- This is commented part --> ") which I can do with few clicks.

Is there a way using the keyboard shortcut to do so? MS Visual Studio has it. May be the Eclipse too, although not sure.

Please help, thanks!
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
  • Save all CTRL+SHIFT+S
  • Delete CTRL+DELETE
  • Close CTRL+/
  • Close all CTRL+ALT+/
  • Open the Execute Anonymous window CTRL+E
  • Execute anonymous Apex code when the Execute Anonymous window is open or the last executed code when the window is closed CTRL+ALT+E
  • View log panels... CTRL+P
  • Log panel SHIFT+ALT+G
  • Show/Hide help for the shortcut key CTRL+SHIFT+?
  • Find CTRL+F
  • Find/replace CTRL+SHIFT+F
  • Find/replace all CTRL+SHIFT+R
  • Search in files CTRL+SHIFT+H
  • Fix indentation SHIFT+TAB
  • Open resource CTRL+SHIFT+O
  • Clear log panel SHIFT+ALT+G
  • Show Preview of the Visualforce page/component CTRL+J
  • Navigate to the declaration of a selected object in the Source Code Editor CTRL+ALT+N
  • Show/Hide the Command Line Console CTRL+SHIFT+L
  • Navigate backward through the view history CTRL+,
  • Navigate forward through the view history CTRL+.
  • Navigate backward through the open views CTRL+PAGE UP
  • Navigate forward through the open views CTRL+PAGE DOWN
  • Toggle full screen editing of the current view, if available F11
  • Exit full screen editing of the current view, if active ESC
I came with the same conclution.

Hence had to post an idea at - https://success.salesforce.com/ideaView?id=08730000000DqmhAAC
Saurabh Sood 8Saurabh Sood 8

Hi sfdcviraj,
It's better to use sublime editor for more flexibility and write code in offline also without getting error.
Austin Wang 13Austin Wang 13
Use Sublime + mavenmate or simply copy to sublime editor then copy it back to console. 
In Sublime, the shortkey is Ctrl + /
Hi sfdcviraj,

   we are able to create custom Shortcut as per your daily requirement.there are some explanation about this I hope it is useful for You
   1)Creating a Custom Shortcut  – The Logout of salesforce.com Hotkey

     One of the simplest keyboard shortcuts is logging out of Salesforce. Let's set it up.

     a)Defining the Keyboard Shortcut

  a)First, go to the Keyboard Shortcuts setup page for your Console and via Setup-> Create-> Apps-> Your Console -> "Customize keyboard shortcuts"-> Edit.
               b)Now add a new shortcut. "Click Add Keyboard Shortcut"

               c)Fill out the shortcut details. Note that the name of the shortcut event is namespaced with "custom shortcut". This is good practice and avoids possible conflicts with existing or future events in the Console.

               d)Now we save and move on to the next step.

Since we want the shortcut to be available at all times, the listener must also be available at all times in the Console.

Some Standard Shortcut Key is also in console check it on a link:


If you found this answer helpful then please mark it as best answer so it can help others.   
sam karolsam karol
I am following this great opportunity here https://oneshottech.com/help-with-notepad-windows10 where I learn latest things and options.
james smith 329james smith 329
DumpsCafe.com is the right choice for student of IT to pass the exam well and quickly. Download the latest exam DumpsCafe practice exams from the member's area, and memorize the Q&A real exam dumps before appearing in the real exam. We provide download access to up-to-date https://www.dumpscafe.com/Braindumps-1z0-1097-21.html questions answers Brain dumps in PDF format. If you can’t find your required exam dumps here, then you can request our support team to arrange that exam dumps for you.
Robert Miller 83Robert Miller 83

Trimming multiple spaces. I implemented this on my website (https://casinohex.org/casinos/).
This keyboard shortcut helps to get rid of extra spaces at the beginning or end of a line.

Tip: Use at the very end, when you're done with the code in the current file.

There is also an alternative approach. You can turn on trimming spaces in the settings themselves:

  • Open the user preferences (Preferences > Settings > User Settings tab).
  • Click the {} icon at the top right of the window. This will open the document.
  • Add a new rule "files.trimTrailingWhitespace": true to the User Settings document (if it doesn't already exist). Thus, you do not edit the default settings directly, but add a new rule to them.
  • Save the file UserSettings.
Civil 9to5Civil 9to5
tributary area (https://9to5civil.com/tributary-area/): Instead, simply use the option in the toolbar menu, or use the hotkey: Ctrl+K, Ctrl+C - for commenting and Ctrl+K, Ctrl+U - for uncommenting
house of outsourcinghouse of outsourcing
  We are extremely concerned with coding and billing procedures, and we work with our cardiologist to help them maximize their earnings while still complying with regulatory requirements. We handle daily billing and swiftly reply to claim denials and rejections. We set up charting and coding to comply with the annual payer modifications that you specify. 
Sam Smith 70Sam Smith 70
Searching for the best assignment writing service that will offer you premium services at reasonable rates? You are on the right platform papers writing services (https://paperswriting.services/); forget all the costly writing companies that dent your pocket and deliver sub-standard results. We are your number one solution for all your academic papers with a touch of excellence.
Johny JonesJohny Jones
Horse racing is a great sport. I've been working with horses for many years and I know that in order to gain their loyalty and friendship you have to be very gentle and friendly with them. I have never taken part in horse racing as a jockey, but I regularly support jockeys and their wonderful horses with on-course bookies. I have a lot of friends who are professional jockeys and actually know how hard they work to win without tiring their pals. Race winners for me, first and foremost, are always a well-coordiated team. It's racing season again, I'm in!
Alexander NunesAlexander Nunes
Download the content of this article in the zippafile click here (https://www.zippyshare.com/sikadur)
Stella SallesStella Salles
Stella SallesStella Salles
I was able to think a lot while looking at this post, see https://stokimg.comhttps://stokimg.com/ib/pkxPhofc4khttp://stokimg.com/ib/wbXstp2NAJ
stela jonesstela jones
It is not recommended to include any statements between the sections of  ‘try,’ ‘catch,’ and ‘finally’ blocks since they form one whole unit of the exception handling mechanism
    //Code that is monitored for exceptions.
//You can’t keep statements here
catch(Exception ex)
    //Catch the exceptions thrown by try block, if any.
//You can’t keep statements here
    //This block is always executed irrespective of exceptions.

PlumbingAdvice24: It is very useful to you for your home plumbing. This is my own website, and I post blogs from time to time. So You can also find information about plumbing.