如何在 Visual Studio Code 中创建工作区? [英] How can I create a workspace in Visual Studio Code?

查看:61
本文介绍了如何在 Visual Studio Code 中创建工作区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常初级的问题,我碰巧在我的 Mac 上安装了 Visual Studio Code,每次我尝试在其上运行一个简单的 Python 程序时,它都说我需要一个工作区来运行,那么我该如何创建工作区?

I have this very beginner question that I happened to install Visual Studio Code on my Mac, and every time I tried to run a simple Python program on that, it said that I need a workspace to run, so how do I create the workspace?

推荐答案

我不知道你是如何尝试运行这个程序的,但你可以直接进入菜单查看Terminal 并在 TERMINAL 中键入 python your_program.py 从您的程序所在的文件夹.

I am not sure how you try to run this program, but you can just go to menu ViewTerminal and type python your_program.py in TERMINAL from the folder where your program is located.

并且请检查您是否不小心安装了 Visual Studio 而不是 Visual Studio Code(这是两个完全不同的程序).

And please check if you have not accidentally installed Visual Studio instead of Visual Studio Code (those are two completely different programs).

这篇关于如何在 Visual Studio Code 中创建工作区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆