键入 XAML 时如何将插入符号移动到结尾引号之后? [英] How to move the caret to after the end-quotes when typing XAML?

查看:22
本文介绍了键入 XAML 时如何将插入符号移动到结尾引号之后?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

输入以下内容后:

<StackPanel Name="someStackPanel"

脱字符在结束引号之前.我所知道的将插入符号转移到引号的右侧(以便我可以继续输入)的唯一方法是按右侧 (>) 按钮.但是那个按钮比较不方便.

the caret is before the end-quotes. The only way I know of transferring the caret to the right of the end-quotes (so I can continue typing) is to press the right (>) button. But that button is rather inconvenient.

(请注意,对于Orientation="Horizo​​ntal" 等下拉选项不存在此问题,其中从下拉菜单中选择Horizo​​ntal 后,插入符号放在结束引号之后.)

(Note that this problem doesn't exist for drop-down options such as Orientation="Horizontal" Where after selecting Horizontal from the drop-down menu, the caret is placed after the end-quotes.)

我尝试了 return tab 但都没有这样做.有不同的方法吗?或者有没有办法只为那些没有下拉菜单的属性取消自动关闭引号?

I tried return and tab but both didn't do it. Is there a different way of doing it? Or is there a way to cancel the auto-closing of quotes only for those properties which don't have drop-down menus?

推荐答案

尝试 ctrl + u.

此键盘快捷键使光标后的字符小写,然后使光标前进.然而,像双引号这样的非字母没有小写版本,所以它实际上相当于按右箭头键——除了你的手指不要离开主行.这是一个黑客,但它有效!

This keyboard shortcut makes the character after the cursor lower-case , then advances the cursor. However, non-letters like double-quote have no lower-case version, so it's effectively equivalent to hitting the right arrow key--except your fingers don't leave home row. It's a hack, but it works!

这篇关于键入 XAML 时如何将插入符号移动到结尾引号之后?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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