Salesforce Apex Master Class (Ep. 5) - How to Setup Visual Studio Code for Salesforce Development

Sdílet
Vložit
  • čas přidán 26. 07. 2024
  • Apex Master Class: Ep. 4 of 132
    In this video we go over how to setup visual studio code for Salesforce Development. Setting up Visual Studio Code makes your life much easier as a Salesforce Developer.
    Please consider donating to help continue to improve the content produced for Coding With The Force: www.paypal.com/donate?busines...
    Get Coding With The Force Shirts Here: www.redbubble.com/shop/ap/685...
    Get Coding With The Force Cups, Artwork, Bags and more here: www.redbubble.com/shop/ap/685...
    GitHub wiki with setup instructions here: github.com/Coding-With-The-Fo...)
    For more information on this check out the blog post here: codingwiththeforce.com/salesf...
    Follow all of our social media here:
    Patreon: / codingwiththeforce
    Github: github.com/Coding-With-The-Force
    Facebook: / codingwiththeforce
    Twitter: / coding_force
    Instagram: / codingwiththeforce
    Salesforce development books I recommend:
    Advanced Apex Programming: amzn.to/3lXi8to
    Salesforce Lightning Platform Enterprise Architecture: amzn.to/2R0D4BQ
    Mastering Salesforce DevOps: amzn.to/3lTtTRN
    ----------------------------------------------------------------------------------------------------------------------------------------
    Table of Contents:
    0:00 - Intro
    0:23 - Why use an IDE?
    3:47 - What you need to install
    6:33 - How to setup a project
    10:29 - Connecting to your org
    14:05 - Pulling Metadata using the Org Browser
    15:45 - How to setup autocomplete for object fields
    18:16 - How to setup auto-deploy on save
    19:56 - How to setup auto-conflict detection
    21:39 - How to enable sutomatic SObject definition refresh
    23:03 - Pulling Metadata using the manifest file
    28:10 - Outro
    DISCLAIMER: The views and ideas expressed on this CZcams channel and blog are based on past development experiences and may not always work for your particular scenarios. The advice in these videos may also become outdated as technology advances. They should be used as examples for educational purposes only. Using any shown solutions in your own org is not advisable since they are example scenarios.
    #salesforce #salesforcedeveloper #salesforceadmin

Komentáře • 54

  • @neilhohmann10
    @neilhohmann10 Před rokem +14

    Just a heads up that at 19:12 in the video, Salesforce Feature Previews is now called Salesforce Core Configuration if you're trying to enable Push-or-deploy-on-save.

  • @devinanderson5985
    @devinanderson5985 Před 2 lety +3

    Dude, thank you. I spent a few hours on salesforce documentation and tutorials to try and understand something you were able to teach me in under 10 minutes. You're a G.

  • @swapnildarakhe9857
    @swapnildarakhe9857 Před 29 dny

    best video on the internet regarding vscode setup for sfdc
    Hope you have a video for Java setup its importance and Prettier setup

  • @steveportock2177
    @steveportock2177 Před 3 lety +3

    Gary, thanks hugely for doing this! I will be sharing this with other sf admins moving into development.

  • @vijaypogaku
    @vijaypogaku Před 3 lety +2

    I installed, setup VS Code and learned few important settings. Thanks for sharing your knowledge. YOU ROCK!

  • @grantbooth8649
    @grantbooth8649 Před 3 lety

    Great video! This was the first video tutorial on VS Code and Salesforce that I found particularly helpful. Good job.

  • @starmole5000
    @starmole5000 Před 2 lety

    So good! Thanks for this. Just about to dive into Dev with VSCode and this is a very good start!

  • @gabolillotravels
    @gabolillotravels Před 3 lety +1

    THANK YOU SO MUCH!
    As a beginner myself, this is incredibly valuable to me :)

  • @jacobcrandall8326
    @jacobcrandall8326 Před 2 lety

    Thanks for the help! I watched a video on Pluralsite and it had me using Window's Command Prompt to create the project!! I guess it can also get the job done, but your explanation made a lot more sense!

  • @reddzltuano8176
    @reddzltuano8176 Před 2 lety

    Thank you so much for the video - I am glad I found your channel as they have been so helpful. I hope you keep uploading so we can continue learning from your channel!

  • @RealFancasta
    @RealFancasta Před 2 lety

    Thank you for the friendly guide! Love your informative and welcoming comment a lot!

  • @masonfatoric7916
    @masonfatoric7916 Před 4 měsíci

    Dude thank you so much!!!

  • @stlaurent26
    @stlaurent26 Před 2 lety

    Thank you! Keep up the good work!

  • @patrickmcauliffe7162
    @patrickmcauliffe7162 Před rokem

    This is the best video so far. Thanks MATE!!!

  • @ediogracie
    @ediogracie Před 2 lety

    Great Video! Thanks buddy!

  • @Berkeli
    @Berkeli Před 2 lety

    this is golden, thanks!

  • @mehmobrams4832
    @mehmobrams4832 Před 3 lety

    Thank you very much for this video.

  • @jean-francoiscarrier9319

    This is the perfect videos for that HOW TO! Thanks !!

  • @sujayjp4247
    @sujayjp4247 Před 3 lety +1

    its quite helpful thank you :)

  • @gustavoandresmaedoconejera6023

    Thank for your videos , thank´s broo

  • @miggroup5557
    @miggroup5557 Před rokem

    Hey. I am a bit tired of doing admin stuff. Thanks this is giving me another dimension.

  • @Finite8614
    @Finite8614 Před 2 lety

    Thank you so much for doing this

  • @prabhatmishra123
    @prabhatmishra123 Před 3 lety +2

    🔥 content as usual. Thanks for the quality content!

  • @tornubarikoboo8074
    @tornubarikoboo8074 Před 8 měsíci

    Great work here! Loving the channel already. Question regarding the "enable Push-or-deploy-on-save." The feature seems great but what if I just want to save my work in that folder without deploying to org every time? Is there a feature for that. IF I missed this I apologize

  • @ArhaamAcademy
    @ArhaamAcademy Před 2 lety

    Thanks a lot for saving my hours

  • @wisemanbell6957
    @wisemanbell6957 Před rokem +1

    At 12:09 when I try to authorize an org, it says CLI pack wasn't installed.

  •  Před 3 lety

    Great video. Do you know how to switch easily from one org to another in VS?

  • @sagarr7940
    @sagarr7940 Před rokem

    At 16.:30, in my VS code i did ran the command to auto populate the variables, but i dont see any suggestions of the variables are pre populated ? Can you let me know if im missing some thing else?
    Do i need to install JDK to use vscode for salesforce? i see an error "An unsupoported java version was detected. Donload and install Java 8 , Java 11 to run the extensions?

  • @shayrickles-mcgreal7122

    Have you ever had VS say that SF CLI is not installed even though it has been. I am currently dealing with this.

  • @saulpelan9238
    @saulpelan9238 Před rokem

    My IntelliSense menu is populating method parameters with arg0, arg1 etc instead of the actual parameter names. Do you know how to solve this? It also doesn't autocomplete constructors and their parameters when using "new ...( )".

  • @aajethiyaa1588
    @aajethiyaa1588 Před 2 lety

    hi, dude could you tell me how to install salesforce extension pack from the extension marketplace because its give me an error XHR failed and If I download extension and install through VSIX than I am unable to create a project.

  • @isdamful
    @isdamful Před 3 lety +1

    Hey garry, could you make a video regarding code formatting tools in vs code for Apex. I really miss the shift + tab here.

    • @CodingWithTheForce
      @CodingWithTheForce  Před 3 lety +1

      Hey Anupam, I actually just finished up a github wiki on how to do this that you can check out here. I plan to do a video on it in the next two weeks if you'd prefer to wait for it. github.com/Coding-With-The-Force/SalesforceBestPractices/wiki/Setup-Uncrustify-Code-Formatting-for-Apex-and-Javascript-in-Visual-Studio-Code

  • @imane_aham
    @imane_aham Před 4 měsíci

    I don't know why the metadata in my org browser in apex classes showing " No Components available "
    thank you for you videos

  • @arankabusiness8053
    @arankabusiness8053 Před rokem

    Hi, little question, do you connect the production org or a sandbox org in the 'autorization org'?

    • @CodingWithTheForce
      @CodingWithTheForce  Před rokem

      Sorry for the huge delay in response! I would suggest a sandbox, connecting directly to prod in an IDE is a dangerous game :)

  • @salesforcerelated2400

    I entered the devorg link for the sfdcloginURL but I cannot login for some reason

  • @harshavardhan9620
    @harshavardhan9620 Před rokem

    Can I please get the video of VS code with version control ?

  • @rg1995julian
    @rg1995julian Před 2 lety

    Why I can't see the option of SFDX to authorize an org?

  • @saibharath0711
    @saibharath0711 Před 3 lety

    Can you please help me to clear the below error .I have synced my developer org to Visual studio code and whatever class i write to test the triggers . It is throwing the following error
    "This class name's value is invalid: CheckSecretInformationTest. Provide the name of an Apex class that has test methods.
    20:55:58.90 Starting Run Apex Tests"

    • @CodingWithTheForce
      @CodingWithTheForce  Před 3 lety +1

      This has happened to me in the past when I’ve made the test class in vscode but I haven’t actually saved it to my org. Have you deployed/saved the test class to your org as well?

    • @saibharath0711
      @saibharath0711 Před 3 lety

      @@CodingWithTheForce Thank You.

  • @akemp06
    @akemp06 Před 3 lety

    Hi Garry, nice video. You show a lot of knowledge. But you make sometimes to big jumps or beginners. For example you do not consider problems someone could encounter. You have to give then ressources how someone can solve its problems even you could not go into details in your video. Even more concrete I could not authenticate my org as it was asking if I want to login via web. But in the output window it is read only and you can't answer the question. I found a work-around, running the SFDX command in the terminal but I consider there is a setting missing that makes the web login a default without asking for it.

    • @CodingWithTheForce
      @CodingWithTheForce  Před 3 lety +2

      Hey Alexander, this is exactly why I make blog posts to go with most of my videos. In the blog posts there are typically links out to more resources with details on how to deal with those issues. Unfortunately I can’t cover everything in these videos or else they’d get crazy long and each video takes me ~30-40 hours to produce, but the blog posts allow me to expand on the topic and give you more resources to help solve any theoretical issue you could encounter.

  • @sagarr7940
    @sagarr7940 Před rokem

    Also can you let me know how to use the Pretier extention for Apex.

  • @danebeexher4399
    @danebeexher4399 Před 3 lety

    no cloud came up for me so this is a dead stock

  • @Felaja00
    @Felaja00 Před 10 měsíci

    i hate when courses don't go step by step how i-m supposed to know how to find my domain if im a coplete beginner dude !?!?😑