简体   繁体   English

是否有更好的方法从Visual Studio中的现有代码创建新的Python项目

[英]Is there a better way to create a new Python project from existing code in Visual Studio

I find it very cumbersome to create a new Python (I am using the PTVS extension) project in Visual Studio from existing code. 我发现在Visual Studio中根据现有代码创建一个新的Python(我正在使用PTVS扩展名)项目非常麻烦。 What I am wanting to know is if there is a way to do this more efficiently. 我想知道的是,是否有一种方法可以更有效地做到这一点。

Ideally, something that would live in the context menu in Windows Explorer, something like "New VS Project", that would open VS, create the project and import the source .py file. 理想情况下,将存在于Windows资源管理器的上下文菜单中的东西(如“ New VS Project”)将打开VS,创建项目并导入源.py文件。 Is something like that possible? 这样有可能吗?

Thanks. 谢谢。

I'm not aware of something like this. 我不知道这样的事情。 Personally I use the Import from existing Code dialog in Visual Studio. 我个人使用Visual Studio中的“ 从现有代码导入”对话框。 You could add this to the issues list on CodePlex . 您可以将其添加到CodePlex问题列表中 Maybe it will be added in a future version. 也许它将在将来的版本中添加。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio PyTools从现有代码创建Django项目 - Visual Studio PyTools Create Django project from existing code 创建一个Visual Studio项目并通过python程序向其中添加文件 - create a visual studio project and add files to it from a python program 无法在 Visual Studio 代码中从 python 创建 csv 文件 - Cannot create csv file from python in visual studio code Visual Studio代码中的Python项目设置 - Python project setup in visual studio code spyder:从现有目录创建新项目 - spyder: Create new project from existing directory 尝试在 Visual Studio 2022 上创建新的 python 控制台项目时出错 - Error while trying create new python console project on visual studio 2022 如何在 Visual Studio 2017 的 Python 项目中添加现有的 package(用于 IntelliSense) - How to add existing package in Python project in Visual Studio 2017 (for IntelliSense) 在 Visual Studio Code 中为 Python 创建简单任务 - Create simple Task for Python in Visual Studio Code 如何从 Visual Studio 代码中的现有虚拟环境中设置 Python 解释器 - How to set a Python Interpreter from inside a existing virtual environment in Visual Studio code Python:从现有列创建一个新列 - Python: create a new column from existing columns
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM