Code Conversion: The Copilot Show - Ep. 9
2K views
Jun 20, 2025
This episode will demonstrate how Copilot makes code conversion effortless! From one language to another, Copilot accelerates development like never before! ๐บ CSharp TV - Dev Streaming Destination http://csharp.tv ๐ C# Corner - Community of Software and Data Developers https://www.c-sharpcorner.com #CSharpTV #csharpcorner #LiveShow
View Video Transcript
0:00
heat heat
0:06
[Music]
0:13
[Music]
0:29
[Music]
0:30
[Applause]
0:31
[Music]
0:42
heat heat
0:59
hello hello hello good morning good
1:02
evening good
1:03
afternoon my name is Mahes Chan i'm your
1:06
host of the Co-Pilot Show
1:10
as you can see my background I'm back
1:12
here in the
1:14
US and uh yeah after a long trip it was
1:19
a very very long trip
1:24
um all right so let's see if you're
1:27
joining me first time welcome to the
1:29
show if you are regular visitor welcome
1:32
back to the show as you know that in
1:34
this show we talked about co-pilot and
1:37
different tips and tricks you can use if
1:39
you're a software developer or anybody
1:42
in tech if you are tech lead project
1:45
manager
1:47
tester anybody you are building software
1:50
copilot is for you and it can help you
1:52
boost your
1:53
productivity today we will talk about
1:56
code conversion
1:58
um if you are first time there's this is
2:01
a ninth episode of this show they're all
2:04
recorded all recorded on
2:07
Corner you go to car.tv you will see all
2:10
recorded shows also on
2:13
YouTube um yeah today so today I'll just
2:17
dive direct into
2:19
the into the coding Visual Studio we'll
2:22
go there let's say
2:24
very short today so it won't take much
2:27
time i'll show you and then I will also
2:29
talk to you about today there's copilot
2:32
is evolving so every month you will see
2:35
something new coming out and if you are
2:39
a software developer anybody who's
2:42
building
2:44
software and you're not adapting and
2:46
learning these new tools you should be
2:49
very scared as a matter of fact I just
2:52
saw on Twitter Microsoft CTO Scott just
2:56
mentioned that in next few years 95% of
3:00
the code will be written by
3:04
AI think about it 95% of the code will
3:08
be written by AI in next few years 3 to
3:11
5 years that means literally there will
3:14
be no need for people writing
3:16
code only 5%
3:19
and that 5% will be on the newer
3:22
technologies where AI doesn't know so if
3:27
you are a young developer you need to
3:29
start thinking about learning new tools
3:30
and technologies so you are ahead of
3:32
time also think about
3:36
um what is the bigger need and there's
3:38
always going to be a big need in in the
3:41
area of the person you can sit between
3:44
the business and the tech tech will be
3:47
built by AI let's just say that but
3:49
there has to be somebody who is learning
3:52
the business needs coming up with the
3:55
solutions coming up with the ideas and
3:58
then how to build that that part can be
4:01
automated however the person who's
4:05
architecting the solutions who are has
4:08
the you know business needs understand
4:10
the business requirements will always be
4:13
needed so you may have to also little
4:15
bit learn more than just coding you
4:17
can't be just sitting in a cube now and
4:19
writing code
4:21
24/7 that's that kind of job will be
4:25
going away over time or it'll be less
4:28
there will be less number of jobs let's
4:32
just say
4:33
that all right so let me share my
4:36
screen i'll share my screen and then
4:38
I'll jump into Visual Studio today and
4:41
today by the way after I show this code
4:43
conversion I want to take more questions
4:46
talk about carrier anything related to
4:49
non-coding whatever you have questions
4:51
talk about C# corner anything you have
4:53
today I have time so I'm going to spend
4:55
I'll take 10 10 minutes out of this for
4:58
Q&A so if you have any questions just
5:00
feel free to get your questions
5:04
ready all right let's share my screen
5:14
people okay so I have this Visual Studio
5:18
i know some of you work in VS Code which
5:20
is also fine doesn't matter where you
5:22
are whichever IDE you have make sure you
5:25
have GitHub Copilot enabled first right
5:27
look at me here it's green my GitHub
5:30
copilot is active here as you can see um
5:33
and there's something cool coming out
5:35
i'll show you in a minute what's cool is
5:36
in GitHub copilot now but let's say I
5:39
have here this I have this simple
5:42
program here it's a C# program obviously
5:45
your program can be in anything else
5:47
doesn't matter but let's say one of your
5:49
team is building similar application in
5:54
uh Python or something else doesn't
5:57
matter what the language or VB it
5:59
doesn't matter what you're using and
6:01
they say we have we found some code or
6:03
we already have this code it
6:05
something let's say this program here
6:07
what it does is it reads a text
6:09
file it display the you know output of
6:14
that f file on the console system
6:16
console and then it also adds a write to
6:19
file right this is a function write to
6:21
file here so this is some code sometimes
6:25
what happens you can have an existing
6:26
code or you found this code let's say
6:29
you found a game smaller you know you
6:32
went online you found a simple game
6:33
written in I don't know um JavaScript
6:36
and you want to convert that to Python
6:38
doesn't matter so
6:40
your copilot what can do so you know how
6:43
to do copilot you know say alt slash
6:46
that's how you open copilot in visual
6:48
studio or you can also go from here
6:51
copilot open the chat window you can
6:53
also go from the you know different
6:56
places right you can go to view you can
6:58
open copilot wherever the copilot is
7:00
available github copilot chat is here
7:02
right you can just go from multiple
7:04
places but look what I found today you
7:07
can see my
7:08
screen ask Copilot as you can see let me
7:12
uh do Hold on i'm going to move this guy
7:14
here come
7:16
on make it a little bigger so you can
7:19
see
7:20
it um let's do
7:24
120 so look at this so as copilot right
7:28
this is my co-pilot you can close it
7:30
here i can open it again all slash
7:34
as co-pilot right or I could just go
7:36
doesn't matter wherever
7:39
so so look what's here now copilot
7:44
actually supports multiple models now
7:46
not only GPT40 you can also look at O3
7:51
mini also cloud so this is this is a
7:54
recent integration so now chat GPT
7:57
Microsoft
7:59
uh not chat Microsoft GitHub copilot not
8:02
only supports you know is a open AI but
8:06
also integrating with other models out
8:08
there too so you may say you know what I
8:12
like that model but better than this one
8:14
who knows so you can just pick and
8:15
choose what model you want to and you
8:17
can test which works better for you this
8:19
is another option
8:22
one other thing happened today was I was
8:24
reading today that now GitHub copilot
8:28
code review agents are available now
8:31
code review and agents what does that
8:33
mean that coming time it's it's
8:36
available in VS code not in Visual
8:38
Studio yet in the late next version I'm
8:40
sure it will be here so you can have an
8:42
agent co-pilot agent that will work as
8:45
your assistant and can do lot more work
8:49
and also learn similar to your habits
8:52
It's going to be interesting time and
8:53
very cool very cool i'll share that more
8:55
in um you know my my coming uh episodes
8:59
when I learn more about it and when it's
9:01
available so anyway today let's talk
9:04
about code conversion or code
9:05
translations you can translate GitHub
9:08
copilot can be used to translate your
9:11
code from one language to other so this
9:14
is my car all I have to do is can you
9:18
translate or convert
9:21
this code to
9:24
Python here's another thing new thing
9:27
you will see here in uh you start seeing
9:29
these links you can put context here
9:31
right so you can this is new in GitHub
9:35
copilot prompt
9:37
window so as I say this code there is a
9:40
highlight here now I click on it you can
9:43
select which file you want to okay you
9:46
don't have to just say existing current
9:48
file my current file is this where you
9:50
are but you can select different file
9:51
from here as well see this is very
9:55
cool
9:57
um so anyway you get the idea so all I'm
10:01
going to do is okay go ahead let's
10:02
convert this you know whole translate
10:05
this code to Python what it will do is
10:08
it will create a new file pi as you say
10:11
this is program.py py and this is the
10:14
complete code here
10:17
um as you can see here so yeah if you
10:19
have a Python program you're running you
10:22
can just take this code and convert this
10:24
to copy from here and go from here you
10:26
can also save this file so that's one
10:29
thing you can do um obviously I'm not
10:33
going to save it i don't really care but
10:35
let's say now you found this in this
10:38
file you found a just one method like
10:41
this method for
10:42
example right i can also do that i can
10:45
select this can
10:50
you convert this code to
10:54
vb.net you may wonder that some there
10:57
are some applications still being
10:59
written or at least maintained in visual
11:01
basic vb.net so here you go so it
11:04
created the whole actually didn't work
11:05
but I can you can select a method as
11:08
well it didn't do that it converted the
11:10
whole thing so cancel i'm going to
11:12
cancel let me try something else so this
11:15
is V file
11:18
can
11:19
you
11:21
do can you
11:26
convert see if I can select method you
11:30
should be
11:32
uh okay the idea was somehow sometimes
11:36
it works sometimes you should be able to
11:38
say selected code here right let's say
11:41
as
11:43
copilot convert to VB
11:56
B.net so anyway it's not working but
11:59
it's supposed to do is only show me the
12:01
selected file but you get the idea you
12:02
can just copy whatever f whatever code
12:05
block you want and you can just go from
12:07
there so how about that cool right this
12:09
is very cool i really like this here the
12:12
you have now different models you can
12:14
use to convert or work with your code uh
12:19
yeah take it give it a try and see what
12:20
you think i would love to learn more
12:22
about what kind of model is better what
12:25
what model do you like the best and what
12:27
works best for you so this is it today
12:31
that was it that's very you know like
12:35
one tip I would say in this episode um
12:38
yeah and sak welcome to the show we have
12:41
web here we have Deepak here yeah if you
12:43
have any questions or you're using this
12:45
co-pilot let me know share your
12:47
experience here and also jump in chime
12:50
in you have any any questions i I will
12:54
be here for at least you know 10 15 20
12:57
more minutes if you have questions
13:00
in the meantime what I want to do is I
13:02
want to share Corner you know C#.com
13:05
that I don't know if you guys noticed
13:07
that but we are improving this our
13:10
website and one of the things we are
13:12
focusing on is let me see if I can share
13:14
my screen
13:17
again uh maybe Deepak can share the
13:20
car.com C# corner doesn't matter
13:22
whichever you are you
13:24
use uh let me see i'll share screen
13:28
again
13:32
so I'm going to share my screen again
13:35
hopefully you can see this i'm going to
13:38
close
13:41
this so one thing besides this uh
13:45
obviously one is car.tv TV is going well
13:48
but what other thing we're doing is
13:53
um in coming time what will happen um as
13:58
I said the code will lot of code will be
14:00
written by AI like copilot and besides
14:03
copilot there's a lot more tools out
14:05
there right if you look at all the tools
14:08
being created that write code I would
14:11
say there's thousands there's so many
14:13
cursor AI this AI that AI so you can
14:16
just say build me a website blah blah
14:18
blah and it'll write the whole code for
14:20
you but what you will need as a software
14:23
developer is that learn about what's
14:26
going on in the world about tech like
14:28
what are the new things coming out you
14:30
need to know about them you need to
14:31
learn about them and latest technology
14:34
news is out there so what we're doing
14:35
here is one thing we have we are more
14:38
focusing on is what is the latest news
14:41
out there in this world so you just come
14:43
here and you can get all your news here
14:46
and obviously this current show copilot
14:48
show GPT
14:51
um all those lot of
14:53
new shows we are launching on this
14:56
car.tv TV not just about coding but also
15:00
about startups it's coming you know I'm
15:02
working on a new show focused on a
15:05
startups how to build your startup how
15:07
to launch startup and then our biggest
15:10
goal here is to build these challenges
15:14
certifications so now you can get
15:16
certified by C# corner
15:19
um and then everything around here we
15:23
are gamifying it and and that's what you
15:25
know gamifying means you can everything
15:27
you do on this website you contribute
15:31
you answer forum questions you share you
15:34
speak you start your own show you attend
15:37
a conference you speak at a conference
15:39
anything you do here you're going to
15:41
start earning these points reward points
15:43
that could convert to sharp tokens in
15:45
coming time so that's where we are
15:48
heading with this and hopefully you like
15:51
this where we are heading with this key
15:52
is the gamifying this whole platform
15:57
um also don't forget to tell your
16:01
friends and to share with anybody you
16:04
know that join C# corner and get
16:08
involved give back to the community
16:09
because the end of the
16:11
day those days are gone where you are
16:14
amazing coder and sit in a cube and you
16:16
can have a longlasting job that's growth
16:19
is not there growth will be where you
16:22
are becoming a leader you are you know
16:24
going understanding the business you are
16:26
building the solutions you are speaking
16:29
you are sharing all that thing will
16:30
bring you the growth um okay so there is
16:34
a question here how can we use copilot
16:36
pro as a student in the ID which ID you
16:39
have um so my deep I believe you have
16:42
copilot I'm not sure what um
16:45
copilot which ID you are using is you
16:48
have VS code VS code already has a free
16:50
version of copilot
16:52
um copilot pro is paid I don't know if
16:55
It's free if you're looking for a free
16:57
but majority of the
16:59
IDs already support Copilot Pro what you
17:04
have to do is you have to go to
17:06
GitHub in GitHub Copilot sign up for
17:09
that license and then whatever the login
17:13
you do in your IDE you have to login
17:17
using your GitHub login
17:20
so when you go to your IDE you log in as
17:22
a GitHub login it will recognize that
17:25
you have the Copilot Pro license and
17:28
then Copilot Pro will be available to
17:30
you in your
17:32
IDE that's how it works in Visual Studio
17:35
and I think VS Code you can add an
17:37
extension and then you required to log
17:39
in to see if you have the license
17:43
um yeah my first episode was that on how
17:46
do you enable Copilot Pro in your Visual
17:49
Studio ID so if you go back to uh C.tv
17:53
and watch my first episode that's where
17:56
you can find
17:57
that um that is all guys uh looks like
18:00
there's not many more questions if you
18:03
have any questions about anything
18:06
uh keep those coming maybe next episode
18:09
we will uh talk more about you know
18:12
other topics as well so the next now I
18:15
think we are done with co-pilot show i
18:17
think we have nine episodes next episode
18:20
I
18:21
will I will talk about I'll still cover
18:25
the co-pilot but next episode will be
18:27
how to use co-pilot to
18:30
learn
18:32
programming or new technology or new
18:35
topic so for example if you are a
18:38
student and you want to learn Python
18:41
or you are a developer let's say you are
18:45
a Java developer and now you have
18:47
project in ASP.NET you want to learn
18:51
ASP.NET
18:52
or you want to learn you know you're a
18:55
developer but you don't know AI or
18:56
machine learning you want to start
18:57
learning machine learning you can
18:59
actually use co-pilot as your
19:02
tutor that is correct you can use
19:04
co-pilot as your t tutor and copilot
19:07
actually can even create a content and
19:10
even learning paths for you so that is
19:14
what we will talk about our next episode
19:16
that how to use copilot to learn and
19:19
upgrade yourself or reskill or upskill
19:23
yourself or depends on where you are in
19:25
your stage if you are a student you can
19:27
learn new technologies using co-pilot
19:29
the co-pilot becomes your trainer
19:31
virtual trainer copilus can also help
19:34
you upskill and reskill your skill your
19:37
you know whatever skills you have so for
19:39
example you've been working in say I
19:42
don't know net for a while but you want
19:43
to upskill you don't know what are the
19:45
new features copilot can help you with
19:47
that also so the guys with thank you so
19:50
much for hanging out me on this Saturday
19:52
there's one more question
19:54
here yeah if you want to create a
19:56
complete project yes it is definitely
19:58
possible you can create a complete
20:01
website using copilot you can complete
20:04
you can create a service you can create
20:06
database applications using copilot that
20:08
is one of the episode we are going to
20:10
finish this with when we finish the
20:13
series the last episode will be how to
20:15
build a complete project using co-pilot
20:18
almost without writing a single line of
20:22
code
20:23
you don't need to write a single line of
20:25
code and copilot can build you the
20:28
complete full-fledged application so
20:30
what we will do is we will create a
20:32
database using
20:33
copilot we will create the the service
20:37
layer the the data layer using copilot
20:40
we will create the front end using
20:41
copilot and we these all connect with
20:43
all together and we will build the
20:46
application and run it that that will be
20:48
the that will be the last episode of
20:51
this this series
20:53
so with that said guys thank you so much
20:55
for hanging out with me on this Saturday
20:57
i will see you next Saturday same time
20:59
11 a.m est thank you so much
21:04
[Music]
#Programming
#Windows & .NET