All Projects → zsmb13 → AndroidStudioTipsDCOnline0625

zsmb13 / AndroidStudioTipsDCOnline0625

Licence: other
No description, website, or topics provided.

AndroidStudioTipsDCOnline

Plugins

Search

Search Everywhere Shift Shift / ⇧ ⇧

  • Use more specific searches instead

Go to Class Ctrl+N / ⌘O

  • Pressing twice toggles All Places / Project files, other scopes available too
  • Supports SearchingByCapitalLetters of classes, as well as FuzzySearchingInTheirNames
  • Add line number to search query to jump to line SomeClass:42
  • All of these apply to the next two shortcuts as well

Go to File Ctrl+Shift+N / ⇧⌘O

Go to Symbol Ctrl+Alt+Shift+N / ⌥⌘O

  • example.method query will yield results for method symbols in classes that contain example in their name

Find Action Ctrl+Shift+A / ⇧⌘A

  • Scratch File
  • Open Blank Diff Window
  • Split and Move Right, Down, etc.
  • Unsplit
  • Use "CamelHumps" words
  • Show Line Numbers
  • Git: Annotate
  • Pull, Fetch, etc.
  • Alt+Enter / ⌥Return to assign shortcut to result

Find in Path Ctrl+Shift+F / ⇧⌘F

  • Full text search of the project
  • Scoping options (including custom scopes), File masks

Navigation

Toggle bookmark Ctrl+Shift+1 / ⌃⇧1

  • Available for all numbers

Go to bookmark Ctrl+1 / ⌃1

File Structure Ctrl+F12 / ⌘F12

  • Supports searches within the panel

Project window Alt+1 / ⌘1

Logcat window Alt+6 / ⌘6

Structure window Alt+7 / ⌘7

Version Control window Alt+9 / ⌘9

Focus editor Esc /

Hide All Windows Ctrl+Shift+F12 / ⇧⌘F12

  • Using it with no windows open reopens last configuration

Navigate to Declaration or Usages Ctrl+B / ⌘B

  • Navigates to usages if already on a declaration

Navigate back Ctrl+Alt+Left / ⌘[

Navigate forward Ctrl+Alt+Right / ⌘]

Quick documentation Ctrl+Q / F1

Quick definition Ctrl+Shift+I / ⌥Space

Type Info Ctrl+Shift+P / ⌃⇧P

Type Declaration Ctrl+Shift+B / ⇧⌘B

Recent Files Ctrl+E / ⌘E

Recent Locations Ctrl+Shift+E / ⇧⌘E

  • Multiple locations from within a single file
  • Visual way of finding previous code

Editing

Reformat Code Ctrl+Alt+L / ⌥⌘L

Optimize Imports Ctrl+Alt+O / ⌃⌥O

Expand Selection Ctrl+W / ⌥↑

Shrink Selection Ctrl+Shift+W / ⌥↓

Copy Ctrl+C / ⌘C

  • Copies line if no text is selected

Cut Ctrl+X / ⌘X

  • Cuts line if no text is selected

Paste Ctrl+V / ⌘V

Paste from History Ctrl+Shift+V / ⇧⌘V

Delete Line Ctrl+Y / ⌘⌫

  • Doesn't go to clipboard, just gets removed

Surround With Ctrl+Alt+T / ⌥⌘T

  • braces, parentheses, if, try-catch, etc.
  • region..endregion comments

Refactoring

Refactor This Ctrl+Alt+Shift+T / ⌃T

Rename Shift+F6 / ⇧F6

Change signature Ctrl+F6 / ⌘F6

Resources

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].