ADM-201 dump PMP dumps pdf SSCP exam materials CBAP exam sample questions

4/44 配置Visual Studio Code开发环境 – 译学馆
未登录,请登录后再发表信息
最新评论 (0)
播放视频

4/44 配置Visual Studio Code开发环境

Configuring Visual Studio Code | Python for Beginners [4 of 44]

如何安装
So previously, we took a look at the three things
像之前说的 在真正开始编写Python代码之前
that we’re going to need to actually start doing our Python code.
我们需要做三件事
We’ll need somewhere for our Python code to run.
我们需要一个运行Python的地方
We’ll need something to edit it with,
我们需要准备代码编辑器
VS Code in our case,
在我们的案例中用的是VS Code
and then we’ll need an extension for a VS Code.
最后我们需要安装VS Code扩展
Now those first two,
前面两项工作
Python and VS Code itself,
也就是安装Python和VS Code
you’ll install the same way that you are going to install
就按照在操作系统中安装其他软件的方式
anything else onto your operating system.
安装即可
So I’m not going to walk through those.
我们这里就不多说了
But I am going to walk through how to install an extension
但我要讲的是怎么安装扩展
since that will be particular to VS Code.
特别是VS Code的扩展
Now right now, I’ve got VS code up and running right here,
现在看到的是VS Code的运行界面
and over on the right-hand side,
你可以看到在右手边这一栏
you’ll notice that there’s a little icon right there,
有一个小图标
and that’s my extensions.
这就是扩展
I can actually just click right here
我在这里点击一下
and look through all of my extensions.
就可以浏览全部的扩展
So it will show me all the ones that I have enabled.
包括已经安装的全部扩展
It will show me all the ones that are recommended,
和推荐安装的全部扩展
and I can actually just do a real quick search right here,
我可以在这里快速搜索
or in my case, Python.
比如我在这里输入Python
So it gives me Python right up at the very top,
它就会马上把Python置顶显示
and I can actually just click “Install”.
然后我直接点击“安装”就可以了
Now, if you happen to have followed the link from the slide deck,
不过如果你点开了幻灯片上面的链接
it’s really the exact same thing,
结果也是一样的
it’s just going to be a slightly different method.
只不过方法会有一点点不同
That instead of using
如果不使用
that little spot over on the right side with VS Code,
VS Code右侧工具栏的小图标
I’ll just simply click “Install” here.
就直接点击这里的“安装”
It will then say, “Hey,
它会问你
would you like to open this up inside of Visual Studio Code?”
“你要在VS Code里打开这个吗?”
I’ll say as a matter of fact, “Yes, I would”,
我们当然选择“是的”
and I click on “Open Visual Studio Code”,
然后我点击一下“打开VS Code”
and now, it brings up that exact same screen that we had before.
现在 又出现了我们之前看到过的界面
Asks me whether I like to install it, yes I would.
它问你是否要安装 对 要安装
I click “Install” and then just give it
我点击了“安装”
a couple of moments here to download, do the installation,
然后等待下载和安装完成
and then you’ll typically need to close out
之后一般需要重启VS Code
Visual Studio Code and reopen it in order to activate it.
来激活扩展
So I’m just going to hit “Close VS Code” to open it back up.
所以现在我重启一下VS code
Just like that, I’m ready to start writing my Python.
像这样 我就可以开始编写Python代码了
Now, if you want to go ahead and add in a file,
如果你想要继续下去 添加一个文件
and we’re actually going to see this in the next module.
我们在下一个部分会讲到这些内容
So I’m not going to steal Susan’s thunder here,
在这里我就不抢Susan的风头啦
but you’ll notice right there is that little plus file.
你会看到这里有个小小的带加号的文件
I can click on that
我可以通过点击它
and that will allow me to add in a brand new file.
来添加一个新的文件
We’ll give it a.py extension,
我们给它一个.py的扩展名
and then start adding in our code.
然后就可以开始添加代码了
But again, I’m going to let Susan show that to you.
再强调一遍 这部分Susan会给你们介绍
What we’ve covered is how you can get the extension into VS Code.
我们这里介绍的只是如何在VS code里添加扩展
So that way, we can actually start creating our Python code.
安装好之后 我们就可以真正开始编写Python代码了

发表评论

译制信息
视频概述

VS code扩展安装教程

听录译者

收集自网络

翻译译者

一颗大橙子

审核员

审核员Y

视频来源

https://www.youtube.com/watch?v=EU8eayHWoZg

相关推荐