The anticipation within the Salesforce community is through the roof as Salesforce Code Builder is finally available for general use. It is a web-based integrated development environment (IDE) powered by Visual Studio Codespaces, tailored explicitly for Salesforce development.
Salesforce Code Builder, now generally available, is a web-based IDE enhanced by Visual Studio Codespaces, designed specifically for Salesforce development.
The tool leverages Einstein for Developers, incorporating generative AI to convert natural language prompts into functional code, significantly streamlining the coding process.
Code Builder supports extensive customization through the Open VSX marketplace, allowing developers to tailor their development environment with various third-party extensions.
Salesforce introduced Code Builder in 2022 and has been available as a beta version since then. But as of November 2023, Salesforce made Code Builder generally available. As Salesforce has again added a new open, modern, and flexible tool in the ecosystem, it is beneficial to learn about it.
In this article, we'll explore:
What Code Builder brings to the table
How to navigate its features
The installation process
The nuances distinguishing between the beta and general availability versions
At its core, Salesforce Code Builder is an online web-based development environment designed for Salesforce development. However, its integration with Microsoft's Visual Studio Code sets it apart. You may know about Microsoft Visual Studio Code. Consider the Code Builder as a web-based version of VS Code.
As the title mentions, 'AI-powered' Code Builder uses generative AI to help you turn prompts into code. It uses Einstein for Developers and helps you convert natural language into code.
It also allows you to add various Developer extensions from the Open VSX marketplace. That's a whole other CRM customization experience right from the browser.
You don't have to worry about its compatibility with various Salesforce frameworks and the latest additions. The Code Builder is configured and optimized to be compatible with the latest Salesforce languages and frameworks.
↔️
Since it is a web-based IDE, development teams (onsite or remote) get consistent access to their code across any machine.
But why should you be excited about it? Let us tell you.
What can you do with Code Builder?
Salesforce Code Builder empowers the workflow of Developers, Administrators, and Architects in three significant ways.
Web-based IDE for effortless accessibility
Code Builder redefines accessibility by eliminating the complexities associated with installations and configurations. With a few clicks, you can access a web-based preloaded IDE featuring Salesforce extensions, CLI tools, and support for various programming languages.
You can also work with LWCs, SOQL queries, Apex, and more. You don't need separate installations or configurations to access all these features. In short, Code Builder is an easily customizable and accessible development environment that's available anytime, anywhere.
Required editions
Code Builder is designed to be inclusive, welcoming Developers from diverse Salesforce editions. You can use it in Lightning Experience in Enterprise, Performance, Professional, and Unlimited Editions.
There is, however, a limitation – it's not accessible in the EU Operating Zone.
Generative AI with Einstein for Developers
Einstein for Developers, now integrated into Code Builder, introduces a new dimension to development. You can use generative AI to speed up the whole code development process. As we all know, generative AI understands natural language, meaning you input prompts in human language and get functional code in output.
Beyond just speeding up coding tasks, it redefines how Developers generate, test, debug, and refactor code, offering tailored support for Salesforce languages. Einstein for Developers is designed for various Salesforce frameworks and can be accessed via an extension.
Build with flexibility and familiarity
As mentioned above, you can add various third-party extensions to the Code Builder from the Open VSX marketplace. It is an open, community-driven marketplace where you can share, use, and get various VS Code extensions. The correct set of extensions can help you create an experience supporting source-driven development and DevOps workflows.
This helps in favorable customization and flexibility, allowing you to build a personalized IDE experience aligning precisely with your workflow. Code Builder is more than just another tool you must adapt to. It's about tailoring the tool to fit seamlessly into individual development processes.
Getting your hands dirty: Installing Code Builder
Installing Code Builder is as easy as it can get. Follow the steps below:
Log into your org and navigate to the "Setup"menu.
Go to the quick find box and search for "Code Builder."
Enable Code Builder, followed by reviewing and accepting the license agreement. This step is required to install the package. You can turn it off later. However, if Code Builder is already installed, turning off the preference restricts access to the application.
Once you enable Code Builder and accept the license agreement, click "Install Package." An installer popup will launch – follow the next steps and you'll have the latest version of the Code Builder managed package.
Choose "Install for All Users" and click the "Install" button.
Grant approval for third-party access and click "Continue."
Upon completion of the installation, you will receive a confirmation email. Verify the successful installation by checking the "Installed Packages Setup" page.
Worry not if you encounter a message stating the app is taking too long to install. Click "Done," and you'll be automatically redirected to the "Installed Packages Setup" page. You'll find an entry for Code Builder confirming its installation status.
The difference between beta vs GA versions
The significant difference between the beta and GA (general availability) versions of Code Builder is where you can install it in Salesforce editions.
In the beta version, you can get the Code Builder from AppExchange and set it up in any environment. On the other hand, the GA version is more selective as it is only installable in specific Salesforce editions.
A notable miss is the inability to install it in a Developer org, a common starting point for many Developers. However, considering Salesforce's reputation and agile nature, this restriction will be lifted soon.
Regarding usage limits, the beta version had a cap of 20 hours within 30 days. But now – with the GA version – there are no such limits. Code Builder is also open for all paid customers, making it more widely available.
Elevate your development experience with Hutte in Visual Studio Code for the Web
The intuitive Hutte Visual Studio Code Extension has been upgraded for seamless compatibility. The latest version is designed to integrate flawlessly with Visual Studio Code for the Web, giving you a more robust and streamlined development experience.
What this means for you:
Enhanced productivity and focus without the need to switch between your browser and your IDE
Reduced setup times
The freedom to code from anywhere, on any device.
The extension is open-source, so feel free to contribute and get inspired by its code.
Dive into the updated Hutte experience within Visual Studio Code for the Web – and transform how you write code on the Salesforce platform today.
As a Salesforce Developer or Architect, you must use Code Builder rigorously and provide constructive feedback to Salesforce to help them improve the product. You may think of Code Builder as a luxury or an enhancement tool. But it is more of a necessity for Salesforce Developers.
Although the current development process with VS Code and its Salesforce extensions is pretty sleek, having an internet-based VS Code makes things much more manageable.
Code Builder makes your code and development environment more accessible through any machine. You get a web-based VS Code type IDE, which smoothes your development process. Just don't forget to commit to Git, as you don't want any potential data loss.
Spring Release Updates
Einstein Copilot Integration
This feature embeds a conversational AI assistant across all Salesforce applications, which can help automate coding tasks in the Salesforce AI-powered Code Builder by creating custom actions that call Flows, Apex, or MuleSoft APIs.
Prompt Builder
A new tool that allows users to create, test, and refine prompt templates without any coding. This feature can directly support AI-powered coding by grounding prompts with dynamic CRM data, which can then invoke prompted workflows through Salesforce’s development tools like Flow, Lightning Web Components, and Apex.
Generative AI Capabilities
The release includes broad enhancements in generative AI, which can facilitate the creation of more sophisticated, context-aware code snippets in the Salesforce environment.
Service Cloud Einstein
While primarily aimed at enhancing customer service, this feature’s AI-driven data retrieval capabilities could potentially be utilized within the AI-powered Code Builder to help developers find coding solutions and implement best practices more efficiently.
Sushrut is a skilled Salesforce Developer, Technical Writer, and Entrepreneur. His expertise includes front-end dev, Web3, and DevRel. He leverages technology to craft exceptional digital experiences.