V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Newyorkcity
V2EX  ›  问与答

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

  •  
  •   Newyorkcity · May 31, 2021 · 814 views
    This topic created in 1800 days ago, the information mentioned may be changed or developed.
            <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  
       May 31, 2021
    ctrl+shift+enter ?
    luckyrayyy
        2
    luckyrayyy  
       May 31, 2021
    为什么要写一半标签呀,要是个完整的标签就不会关闭了吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2806 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 08:18 · PVG 16:18 · LAX 01:18 · JFK 04:18
    ♥ Do have faith in what you're doing.