使用python工具在Visual Studio 2015中导入python PyCharm项目 [英] Import python PyCharm project in Visual Studio 2015 with python tools

查看:908
本文介绍了使用python工具在Visual Studio 2015中导入python PyCharm项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在PyCharm中创建了几个python项目,我想在VS 2015中打开它们,而无需将python文件一一复制到新项目中.

I have few python projects Iv'e created in PyCharm, and I would like to open them in VS 2015 without copy the python files one by one to a new project.

是否可以将PyCharm项目导入VS2015?

Is it possible to import PyCharm project into VS2015?

推荐答案

Ron Amihai,

Hi Ron Amihai,

如果PyCharm项目具有.sln文件或.pyproj文件,我们可以在安装了Visual Studio 2015后直接在Visual Studio 2015中打开它 适用于Visual Studio 2015的Python工具.

If the PyCharm project has a .sln file or a .pyproj file, we could open it in Visual Studio 2015 directly when your Visual Studio 2015 has installed Python Tools for Visual Studio 2015.

如果没有.sln或.pyproj文件,我们可以按照以下步骤复制python文件,这些步骤可以一次复制所有文件.

If there doesn't have .sln or .pyproj file, we could copy the python files with following steps, which could copy all files at one time.

  1. 打开已安装适用于Visual Studio 2015的Python工具的Visual Studio 2015.
  2. 通过新建"->创建一个Python项目.项目->模板-> Python->
  3. 在解决方案资源管理器窗口中右键单击Python项目以选择在文件资源管理器中打开文件夹".
  4. 将所有文件复制到已在其中打开的项目路径中文件浏览器,然后关闭文件浏览器.
  5. 在解决方案资源管理器中选择项目,然后单击显示所有文件".解决方案资源管理器顶部的选项"以显示复制到此文件夹的文件.
  6. 使用"Ctrl +单击文件/文件夹"选择所有这些文件/文件夹.然后右键单击以选择包含在项目中"一次将这些文件包含到项目中.

最好的问候,
Weiwei

Best Regards,
Weiwei


这篇关于使用python工具在Visual Studio 2015中导入python PyCharm项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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