V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Newyorkcity
V2EX  ›  问与答

请教下 IDEA(AndroidStudio)中有没有快捷键提供『离开当前字符串并光标移动到下一行』的功能?

  •  
  •   Newyorkcity · 2021-05-31 10:59:37 +08:00 · 432 次点击
    这是一个创建于 1059 天前的主题,其中的信息可能已经有所发展或是发生改变。
            <Button
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:id="@+id/sendButton|"
    

    现在光标在 "@+id/sendButton" 的最后一个引号前(| 符号表示光标),如果用 shift+Enter,离开字符串是实现了,标签也被关闭了。

    我希望的效果:光标切换到下一行,我接着输入第二个属性,比如 android:text="..."。

            <Button
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:id="@+id/sendButton"
                |
    

    有这样的快捷键吗?多谢

    AOIO7t
        1
    AOIO7t  
       2021-05-31 11:03:00 +08:00
    ctrl+shift+enter ?
    luckyrayyy
        2
    luckyrayyy  
       2021-05-31 11:03:27 +08:00
    为什么要写一半标签呀,要是个完整的标签就不会关闭了吧
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3228 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 12:05 · PVG 20:05 · LAX 05:05 · JFK 08:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.