Skip to main content

Shortcuts in Android Studio for Android Developers - ABNHive

I hope these shortcuts will definitely help you to increase the productivity level.

Shortcuts in Android Studio for Android Developers - ABNHive

  • Search for command: cmd + shift + a (Windows / Linux: ctrl + shift+ a) You just type: close and you’ll get a proper shortcut/command.
  • Choose from the last copy / pastes : cmd + shift + v (Windows / Linux: Ctrl + Shift + v). By default, there are 5 last copy/paste items.
  • Enable mulmulti cursorature: ctrl + g (alt + j for Windows / Linux).
  • Open a class: cmd + o (Windows / Linux: ctrl + n).
  • Open any file: cmd + shift + o (Windows / Linux: ctrl + shift + n)
  • Open symbol: cmd + option + o (Windows / Linux: alt + shift + n).
  • Go to implementation: cmd + option + b (Windows / Linux: ctrl + alt + b).
  • Go to declaration: cmd + b (Windows / Linux: ctrl + b). 
  • Go to type declaration: control + shift + b (Windows / Linux: ctrl + shift + b). 
  • Go to super: cmd + u (Windows / Linux: ctrl + u). 
  • Move between tabs: cmd + shift + [ (move left) or cmd + shift + ] (move right) (Windows / Linux: alt + ← / →).
  • Move between Design / Text tabs in layout’s view:  control + shift + ← / → (Windows / Linux: alt + shift + ← / →).
  • Close a current tab: cmd + w (Windows / Linux: ctrl + F4).
  • Hide all windows: cmd + shift + F12 (Windows / Linux: ctrl + shift + F12).
  • Minimize Android Studio instance: cmd + m (Windows / Linux: ctrl + m).
  • Format your code: cmd + option + l (Windows / Linux: ctrl + alt + l).
  • Auto-indent lines: control + option + i (Windows / Linux: ctrl + alt + i).
  • Implement methods: control + i (Windows / Linux: ctrl + i).
  • Smart code completion (filters the list of methods and variables by expected type): control + shift + space (Windows / Linux: ctrl + shift + space).
  • Find: cmd + f (Windows / Linux: ctrl + f).
  • Find and replace: cmd + r (Windows / Linux: ctrl + r).
  • Move hardcoded strings to resources: option + return (Windows / Linux: alt + enter). 
  • Build and run: ctrl + r (Windows / Linux: shift + f10).
  • Override methods: ctrl + o
  • Show project: alt + 1
  • Show logcat: alt + 6
  • Build: ctrl + f9
  • Expand all: ctrl + shift + +
  • Delete line : cmd + delete or cmd + backspace
  • Duplicate line/selection : cmd+d
  • Issue quick fix : alt + enter
- Aswin Bhim Nath

Comments

Popular posts from this blog

Services in Android - ABNHive

A service is a component which runs in the background without direct interaction with the user.  A service extends the base class Service . Services run with a higher priority than inactive or invisible activities and therefore it is less likely that the Android system terminates them for resource management. The only reason Android will stop a Service prematurely is to provide additional resources for a foreground component usually an Activity. When this happens, your Service can be configured to restart automatically. You can start a service if it is not running using Context.startService(), connect (bind) to a running service using Context.bindService(), and communicate with the running service through an interface that the service exposes. Each service class must have a corresponding <service> declaration in the AndroidManifest.xml file for its package. Types of Services Bound Service Service which call indefinitely in between activity. An Android component m...

An Introduction to Layouts in Android - ABNHive

There is a number of Layouts provided by Android which you will use in almost all the Android applications to provide a different view, look and feel. Linear Layout - LinearLayout is a view group that aligns all children in a single direction, vertically or horizontally. Linear layout is used to place one element on each line. So, all the elements will be placed in an orderly top-to-bottom fashion. Relative Layout - RelativeLayout is a view group that displays child views in relative positions. Using relative layout, we can specify the position of the elements in relation to other elements, or in relation to the parent container. Table Layout - TableLayout is a view that groups view into rows and columns.  Absolute Layout - In AbsoluteLayout we can specify the exact coordinates of each control that we want to place. In absolute layout, we will give the exact X and Y coordinates of each control. Frame Layout - It is used when you want to show one item on each sc...