+ Start a Discussion
Anthony Rissone 8Anthony Rissone 8 

how do i connect visual studio code to my free developer org?

So I'm learning apex via http://www.sfdc99.com/ 

Now he simple states, get a free dev org, i did that and then go through steps xyz to connect mavensmate...problem is mavensmate is no longer supported. 

So i installed all the packages need for visual studio code, but for the love of all things holy i cannot figure out how to connect it. Also whenever i log into my free dev org i'm not sure if im in sandbox or in the dev org, there's literally nothing different (other than one has less content).

I also have a corporate account, obviously i cant use the firms enterprise edition...
MagulanDuraipandianMagulanDuraipandian
Dev org is similar to Produciton org but with no sandboxes.
--
Magulan Duraipandian
www.infallibletechie.com
Raj VakatiRaj Vakati
You cannt connect to salesforce directly from the visual studio code  . You need to use some plugs 
Learning ApexLearning Apex
Same as Anthony Rissone, I have installed Visual Studio Code and the Salesforce Extension Pack; now I would like to connect VS Code with a SFDC's Dev Org.
How can this be done in VS Code and the Salesforce Extension Pack?

In Eclipse IDE + Force.com extension, upon creating a new project, the Org's credentials were requested and ... that was the way to connect the IDE with the Org.

I have tried to create a Project (Ctrl+Shift+P) and then searching by SFDC:DX Create Project. When clicking on "Create Project", VS Code says "Extivating Extensions..." and that's about it. It does not do anything else, it does not ask for credentials to connect to a SFDC's Org.

Can you help?
NatsuNatsu

Use the command :
sfdx force:project:create --projectname myproject --manifest
cd mychangeset

or
1. press ctrl+shift+p and then sfdx-> create project with manifest
2. enter project name
3. select location of project
4. click create project.

Use the below link:
https://github.com/forcedotcom/salesforcedx-vscode/wiki/Develop-Against-Any-Org-in-Visual-Studio-Code
 
Ajay K DubediAjay K Dubedi
Hi Anthony,

After the Installation of VS Code, you have to install two packages in your VS code for support Salesforce
you can get it on click VS code in extension : Marketplace than insert the search box salesforce and install these two packages

1. Salesforce CLI Integration (https://developer.salesforce.com/tools/sfdxcli)
2. Salesforce extension

When you created first time a folder in VS code than you have followed these step with the command(ctrl+shift+p)
- Create a project with Manifest
- Authorize an Org (on click this you will give access your org to vs code)
- Retrieve Source in Manifest from Org

Then you can get your Org data in your VS code folder and when you will reopen this Without having to re-authenticate it each time.
If you change anything in your org then you can retrieve your data through a manifest(On click on manifest there are a package.xml file,
open package.xml and then on right click you can retrieve your data).

For more information refer: https://www.youtube.com/watch?v=7qR0c8h5cCU

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi
Deepali KulshresthaDeepali Kulshrestha
Hi Anthony,

1) All About Salesforce Extensions for VS Code:​
https://developer.salesforce.com/blogs/2018/02/salesforce-extensions-vs-code.html

The big problem is the migration to Salesforce DX tools (Scratch Org/Github/CLI) at the same time of using VS Code instead of MavensMate.

That is the new "official" development environment of Salesforce. I learned that during a Lex Tour in Paris from Philippe Ozil directly who only works now with SF DX and VS Code (he has given us a demonstration during the last Lightning Now Tour).
Nathan Totten, Senior Director, Product Management at Salesforce (February 22, 2018): 
https://developer.salesforce.com/blogs/2018/02/getting-started-salesforce-dx-part-1-5.html
Philippe Ozil (February 28, 2018):  https://developer.salesforce.com/blogs/2018/02/getting-started-salesforce-dx-part-5-5.html

2) Migrating Existing Projects to Salesforce DX: By Christophe Coenraets (July 31, 2017)

Are you ready to move to Salesforce DX, but your source code is currently in a Developer Edition (DE) or Sandbox org?
In this blog post, I describe the easy steps to convert existing source code to a Salesforce DX project.

https://developer.salesforce.com/blogs/developer-relations/2017/07/migrating-existing-projects-salesforce-dx.html

3) Get Started with Salesforce DX:  https://developer.salesforce.com/promotions/orgs/dx-signup
For the users of free developer orgs.

4)  Scratch Orgs: The scratch org is a source-driven and disposable deployment of Salesforce code and metadata. A scratch org is fully configurable, allowing developers to emulate different Salesforce editions with different features and preferences. You can share the scratch org configuration file with other team members, so you all have the same basic org in which to do your development.
https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs.htm

5) All the other tools including Eclipse Force.com IDE 2 will be deprecated soon.

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha
 
Vignaesh Ram AmarnathVignaesh Ram Amarnath
Adding to what Ajay said: Now you can use Salesforce Package.xml Generator extension for VS Code. This gives you an Eclipse Force.com IDE like UI to choose metadata components for your package.xml. It is can be used as a companion to the official Salesforce Extensions for VS Code.

https://marketplace.visualstudio.com/items?itemName=VignaeshRamA.sfdx-package-xml-generator

User-added image
Greg FinzerGreg Finzer
I created a blog post for explaining how to setup VS Code to work with Salesforce step by step:

http://sixfootcoder.blogspot.com/2019/01/setting-up-vs-code-with-salesforce.html
cyberflix tvcyberflix tv

That was a nice explanation I would appreciate the one who tried it.
Thanks & Regards,
cyberflix tv apk (https://cyberflixtvapp.co/cyberflix-tv-apk/)

Amelia FaulknerAmelia Faulkner
I am learning from http://www.sfdc99.com it's easy to learn (https://blackgermanshepherd.info)
Mateusz KretekMateusz Kretek
Thanks a lot Greg Finzer! Your blog post helped me a lot!
Leanbridge TechnologiesLeanbridge Technologies
This article contains detailed information. can help you 
https://www.sfdcstop.com/2019/06/how-to-setup-visual-studio-code-for.html