LoginSignup
0
0

Execute Anonymous Apex

Posted at

トレイルヘッド

The step to "Click Code Lens Execute Anonymous Apex highlighted in pink in the below screenshot." is where we're getting lost. The Code Lens action is not appearing for some people, including me. I'm on an Apple iMac running VS Code.

  • In the dreamhouseappTest.apex file, select the code (Select All in this case)
  • Then on Mac, hit CMD + SHIFT + P to open the Command menu
  • Or on a PC, CTRL + SHIFT +P to open the Command menu
  • Type "SFDX: Execute" and choose "Execute Anonymous APex with Currently Selected Text"
  • The command runs in your output terminal console.
  • Scroll back up and you should see House data.

image.png

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0