如何配置打字稿编辑器到行尾 [英] How to configure typescript editor to go to end of line

查看:107
本文介绍了如何配置打字稿编辑器到行尾的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您在任何编辑器(包括VS)中的任何行的末尾单击,光标/插入符号通常位于该行的末尾。

If you click behind the end of any line in any editor (VS included), the cursor/caret is normally positioned at the end of the line.

但是,如果我正在Visual Studio 2013中编辑TypeScript文件(安装了Typescript 1.0和最新的Web Essentials),则光标实际上位于我单击的位置-如果键入/按Enter,则插入空格!

However, if I'm editing a TypeScript file in Visual Studio 2013 (with Typescript 1.0 and latest Web Essentials installed), the cursor is actually positioned where I click - inserting spaces if I type/press enter!

这种行为使我发疯-但我找不到任何设置可以更改此设置...

This behavior is driving me mad -but I can't find any setting to change this...

这显然是特定于TS的,确实不会在任何其他文件类型上发生。

This is clearly TS specific and does not occur on any other file type.

任何想法如何将其关闭?

Any idea how to switch this off?

推荐答案

听起来您好像启用了虚拟空间。转到工具->选项->文本编辑器\ TypeScript,然后取消选中右侧的启用虚拟空间。

It sounds like you somehow have Virtual Space enabled. Go to Tools -> Options -> Text Editor \ TypeScript and uncheck "Enable Virtual Space" on the right.

这篇关于如何配置打字稿编辑器到行尾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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