Typescript文件(Visual Studio)中的键盘输入丢失 [英] Loss of keyboard input in Typescript file (Visual Studio)

查看:174
本文介绍了Typescript文件(Visual Studio)中的键盘输入丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每天几次,我会随机失去在Visual Studio 2015上的打字稿(.ts)文件中键入字符的功能.

Several times a day, I randomly lose the ability to type characters in typescript (.ts) files on Visual Studio 2015.

  • 我可以成功粘贴文本
  • 分号,导航,输入,删除和退格键仍然有效.
  • 其他文件类型都没有此问题

到目前为止,唯一的解决方案是重新启动Visual Studio.

The only solution so far is to restart Visual Studio.

============== [更新] =====================

============== [Update] =======================

发生问题时,我在项目属性中注意到了这一点:

I noticed this in the project properties when the issue happens:

重新加载项目或解决方案无济于事.

Reloading the project or the solution doesn't help.

推荐答案

这是我在VS2015并重新整形10.xxx时发生的.我暂停了重新剃须刀,这没有用.然后,我进入项目的typescript属性,并注意到我的ECMAScript版本下拉菜单未设置为任何内容.我将其更改为ECMAScript 6,然后键盘又回来了.不幸的是,在那之后我开始遇到各种各样的红色花体.我认为VS2015还没有为Angular2和ECMAScript 6做好准备.

This happened to me with VS2015 and reshaper 10.xxx. I suspended re-sharper and that did not work. I then went into the typescript properties for my project and noticed my ECMAScript version drop down was not set to anything. I changed it to ECMAScript 6 and my keyboard came back. Unfortunately I started getting all kinds of red squiggles after that. VS2015 is not quite ready for Angular2 and ECMAScript 6 in my opinion.

这篇关于Typescript文件(Visual Studio)中的键盘输入丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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