Gemini Code Assist for Salesforce Development
886 views
Aug 3, 2025
Blog Post: https://www.infallibletechie.com/2025/08/gemini-code-assist-for-salesforce-development.html
View Video Transcript
0:06
Hello everyone. In this video, we are
0:08
going to see how to make use of Google's
0:13
Gemini code assist. We can make use of
0:17
this AI first coding in your natural
0:20
language.
0:22
We are going to see how to make use of
0:24
this uh Google's Gemini code assist for
0:27
Salesforce development. specifically in
0:29
this video. The first step is we have to
0:34
install Gemini code assist from the VS
0:39
uh marketplace.
0:41
So go to this uh website and uh you can
0:45
search for uh Gemini code assist or uh
0:48
check the video description. In the
0:50
video description, I have given my blog
0:53
post. From the blog post, you should be
0:54
able to get this link to the Visual
0:57
Studio Marketplace. From this, you
1:00
should be able to install this Google's
1:04
Gemini Code Assist VS Code extension.
1:07
Once this is uh installed in your VS
1:10
code, open your VS code
1:16
and uh
1:18
click the Gemini code assist and then
1:21
you should be able to make use of uh the
1:24
AI powered
1:27
Gemini code assist for your Salesforce
1:30
development.
1:34
Whenever you open this uh Gemini code
1:39
assist, you can click command plus I.
1:44
Since I'm a Mac OS user, I'm clicking
1:48
command I and then I should be able to
1:52
see the
1:55
Gemini's uh code assist
1:58
options. I can generate new code. I can
2:02
fix if I get any errors while deploying
2:05
it to uh to the org or during the
2:08
development itself. If I'm getting any
2:11
validations, I should be able to use uh
2:13
this fix.
2:15
Let's say you are in a support project
2:18
or you are in an enhanced project u
2:21
project where you wanted to do some
2:23
development on top of previous
2:25
developers development and then if you
2:27
wanted to understand the code what the
2:29
other developers have developed you can
2:31
select the code and then you can make
2:33
use of this explain this one more
2:37
powerful option is generate unit tests
2:40
you can make use of this particular
2:43
generate unit tests option to generate
2:46
test classes.
2:50
So for example,
2:53
if I wanted to understand this, I should
2:56
be able to use explain this.
3:03
It automatically added the prompt
3:06
instead of retyping it.
3:10
And now the Google's Germany code assist
3:13
will help usually
3:27
it will be very quick.
3:30
So,
3:36
so it has given me the full explanation
3:38
of this uh
3:41
the lines of code which I have selected
3:45
and also it gave some recommendations.
3:49
If you wanted to make use of the
3:51
recommendations, you can click accept.
3:54
If you wanted to reject it, you can
3:57
reject it.
4:03
Okay. And uh instead of me saving it,
4:08
let me open the Apex class again.
4:11
Okay.
4:14
Okay. Let me
4:16
close my VS code and open it again.
4:20
Now we saw how the code assist was able
4:24
to create its uh prompt so that it can
4:28
help us in the development. But let's
4:30
say you are good in prompts and then if
4:33
you wanted to type in your own prompts
4:36
then you can go to the same Google's
4:39
Gemini code assist chat and then you can
4:43
give the prompts. If you wanted to
4:45
beautify the class then you can say can
4:48
you beautify the class then it will
4:50
align it properly so that it will be
4:53
very um uh appealing to the eye and uh
4:58
it will also beautify in a way so that
4:59
other developers can also easily
5:01
understand the code.
5:03
Let's say you wanted to save your time
5:06
in generating the test classes then you
5:08
can make use of this prompt like I need
5:10
help in writing test class for this. So
5:13
let me make use of this font.
5:19
I don't have a test class for this
5:21
account search controller apex class. I
5:25
have requested
5:27
Google's Gemini code assistant to create
5:30
the test class for me.
5:36
Let's say you
5:38
prompted something and then if you
5:40
wanted to stop in the middle then you
5:42
can make use of this stop button.
5:48
So it automatically created uh the test
5:51
class and also its XML file.
5:57
It also gave suggestions for my existing
6:00
class and this is the test class.
6:05
So we can make use of
6:08
this one and this one so that it will
6:11
create the test class and it's
6:14
supporting doxml file. So whenever we
6:17
create an apex class, we have the cls
6:22
file and also XML file.
6:26
Google's Gemini code assist was able to
6:29
generate both CLS file and also the XML
6:33
file.
6:37
I would strongly recommend start uh
6:40
using uh Google's Gemini code assist for
6:44
all your Salesforce development. It will
6:47
save your time and also it will help us
6:49
to build efficient
6:52
um features.
6:59
Please check the video description. In
7:01
the video description, I have given my
7:03
blog post. From the blog post, you
7:05
should be able to get the link to the
7:08
marketplace of Visual Studio Code for
7:10
this Google's Gemini Code Assist. And
7:12
then you should be able to install it in
7:14
your VS Code and then you should be able
7:15
to easily utilize this.
7:22
I hope it was helpful.
7:31
Thank you for watching.
#Development Tools
#Internet Software
#Software