How to select multiple places (sublime) in code in Android Studio?

后端 未结 8 1006
深忆病人
深忆病人 2020-12-22 21:41

How to select multiple places in code in Android Studio ?

I want to insert the same text in multiple places in my source code. Like a have more than one mouse cursor

相关标签:
8条回答
  • 2020-12-22 22:20

    On a mac I like to do ⌥ (option) + shift + mouse click on multiple lines in Android Studio 3.1.3.

    0 讨论(0)
  • 2020-12-22 22:21

    Multiline Caret (without mouse)

    Windows: CTRL + CTRL(Hold) + ↑ / ↓

    Mac: + (Hold) + ↑ / ↓

    ESC will end multiline mode.

    Change Multi-caret Hotkey

    To add a custom Keymap, CTRL+SHIFT+A, type keymap and click on the one with Settings as subtext. Search for Clone Caret Above and Clone Caret Below.

    I mapped mine to ALT+SHIFT+↑ / ↓.

    Bonus

    Try holding combinations of CTRL, SHIFT, and arrows for improved selection power.

    0 讨论(0)
  • 2020-12-22 22:21

    For both Mac and Windows, just open the Context Menu and click on the "Column selection mode" to enable or disable the behaviour..

    0 讨论(0)
  • 2020-12-22 22:22

    On a macOS you can use:

    Tap: Control + Command + G - Select all the same value

    Tap: Control + G - Every tap combination select the new same value

    Hold: Option + Mouse Click - Select multiline with a mouse

    Hold: Option + Shift and Tap: Mouse Click - duplicate cursor for a each tap place

    0 讨论(0)
  • 2020-12-22 22:23

    You can use Alt + Shift and click multiple locations to for multiple cursor.

    To select similar occurrences in files use Alt + j.

    For more details : Click Here

    0 讨论(0)
  • 2020-12-22 22:23

    Press Shift + Alt + Insert combination to edit in Column selection mode.

    0 讨论(0)
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题