如何在应用程序文本编辑器中打开VS社区. [英] How to open the VS community in application text editor.

查看:140
本文介绍了如何在应用程序文本编辑器中打开VS社区.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近安装了Visual Studio 2015社区版.在试用了这些功能并设置了一些Windows布局后,我开始处理一些PowerShell项目 我一直在努力(我已经在Visual Studio社区和代码中都安装了PowerShell扩展).

I recently installed visual studio 2015 community edition. After playing around with the features and setting up a few windows layouts I got to work on some PowerShell projects that I’ve been working on (I have installed the PowerShell extension on both visual studio community and code).

在最初的大约两周时间里,一切都按预期工作,但我认为是某种更新之类的东西,因为现在无论何时我尝试打开PowerShell 脚本(或与此相关的VS代码脚本).它并没有为我打开输入代码的窗口,而是以我要编辑的代码打开了PowerShell ISE,否则它将在同一庄园中打开VS代码应用程序.

For the first maybe two and a bit weeks everything was working as intended but I assume that was some kind of update or something because now whenever I try to open a PowerShell script (or a VS code script for that matter). It doesn’t open up a window for me to enter code into rather it opens ether the PowerShell ISE with the code I want to edit or it will open the VS code application in the same manor.

我是 主要是PowerShell用户,在任何其他环境中对任何其他代码的经验都很少.我想过渡到Visual Studio社区的原因是因为我 不想每次我想学习新代码时都必须学习新的ISE.

I am predominantly a PowerShell user and have little experience with any other code in any other environment. The reason I wanted to transition to visual studio community is because I didn’t want to have to learn a new ISE every time I wanted to learn a new code.

我在网上看了看别人的建议,但唯一提供的建议是 打开文件,这是我在发生此问题之前所做的事情.

我可以肯定这应该是一个简单的解决方法,但鉴于我的使用经验极为有限视觉工作室,我什至不知道从哪里开始这个问题.

所提供的任何帮助将不胜感激.   

推荐答案

嗨TBL156,

欢迎来到MSDN论坛.

您能否在VS社区2015中创建一个新的PowerShell脚本项目,并检查它是否可以按以下方式工作?首先,我们需要确认此问题仅与您当前的PowerShell项目有关,或与所有 PowerShell项目.

Could you please create a new PowerShell script project in your VS community 2015 and check if it will work as below or not? Firstly, we need to confirm this issue is only related to your current PowerShell project or for all PowerShell projects.

>>每当我尝试打开PowerShell脚本(或与此相关的VS代码脚本)时.它并没有打开供我输入代码的窗口,而是以我要编辑的代码打开了PowerShell ISE,否则它将 在同一庄园中打开VS代码应用程序.

>> whenever I try to open a PowerShell script (or a VS code script for that matter). It doesn’t open up a window for me to enter code into rather it opens ether the PowerShell ISE with the code I want to edit or it will open the VS code application in the same manor.

如何打开PowerShell脚本文件?您可以打开VS和File-Open-Project/Solution…或Files…,选择上面的PowerShell脚本文件或它所属的解决方案,我已经尝试打开一个新创建的PowerShell脚本项目. 在我的本地计算机上,它可以成功打开.

How did you open the PowerShell script file? You can open VS and File-Open-Project/Solution… or Files…, choose the above PowerShell script file or the solution it belongs to, I have tried open a new created PowerShell script project on my local and it can be opened successfully.

>>在最初的大约两周时间里,一切都按预期工作,但是我认为这是某种更新或类似的东西.

参考您的描述,它看起来像引起此问题的一些更改,请查看以下内容以排查此问题:

1.转到Windows更新,如果最近安装了一些更新,请删除它们,然后重新启动计算机,然后再次检查.

2.打开VS,然后转到工具-扩展和更新和已安装",然后尝试删除那些最近安装的扩展,然后重新启动VS.

3. 请打开管理CMD窗口并导航到C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE,然后按以下方式运行这些命令,然后打开VS,看看是否会出现相同的问题.

3. Please open an administrative CMD window and navigate to C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE and run these commands as below, then open VS and see if the same issue will occur or not.

  • devenv/resetuserdata:清理用户数据
  • devenv/resetsettings:恢复IDE的默认设置,可以选择重置为指定的VSSettings文件. /span>
  • 运行命令:devenv/safemode:在安全模式下启动IDE,加载最小的窗口和如果您可以打开上述PowerShell文件,则表示已安装的扩展名为 罪魁祸首,请转到工具-扩展和更新",并逐个删除已安装的扩展,以查找导致此问题的特定扩展.
  • Run the command: devenv /safemode: Launches the IDE in safe mode loading minimal windows and if you can open the above PowerShell file, that means the installed extensions is the culprit, please go to Tools—Extensions and updates and remove the installed extensions one by one to find the specific extension that caused this issue.

最好的问候,

萨拉


这篇关于如何在应用程序文本编辑器中打开VS社区.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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