Android Studio: (About) 10 Things You (Probably) Didn’t Know You Could Do

Android Studio: (About) 10 Things You (Probably) Didn’t Know You Could Do - Hello friends Android tutorial and tips trik, The article you are reading this time with the title Android Studio: (About) 10 Things You (Probably) Didn’t Know You Could Do, we have prepared this article for you to read and download the information therein. hopefully fill posts article (About), article (Probably), article 10, article android, article Could, article Didn’t, article Do, article Know, article Studio, article Things, article Tutorial, article You, we can write this you understand. Well, happy reading.

Title : Android Studio: (About) 10 Things You (Probably) Didn’t Know You Could Do
link : Android Studio: (About) 10 Things You (Probably) Didn’t Know You Could Do

Baca juga


Android Studio: (About) 10 Things You (Probably) Didn’t Know You Could Do

In this "AndroidTool Time" pro tip, I'm going to show yousome Android Studio expert tips to keep you in the zoneand increase your productivity.

[MUSIC PLAYING] You're probably alreadyfamiliar with some of the most commonshortcuts-- turning on automatic importing ofunambiguous class names, pressing Shift twiceto search everywhere, or using Shift-F6 to renamea variable, method, or class.

So we'll skip past those andtry something a little more nuanced than that.

Here, I need to changethe duplicated method to set latitude.

I can bring up AutoComplete to make life easy with Control-Space.

But when I selectthe right method, it annoyingly inserts a newmethod in front of the old one.

Unless I hit Tabinstead, in which case, it'll replace the oldmethod with the new one.

Similarly, if I hitControl-Shift-Space, I get only suggestionsof the expected type.

And after I make theselection, hitting Tab will replace the old value.

For both Control-Spaceand Control-Shift-Space, hitting the shortcuta second time will suggest autocompletion options based on chained expressions,collections, lists, and arrays.

You already know how to navigateyour code using the cursor keys and using Alt-Left andRight to skip across words and holding Shiftto select them.

But did you knowyou can use Alt-Up to extend your selectionto the next containing node and Alt-Down tocorrespondingly shrink your selection? Once selected, use Alt-ShiftUp or Down to move the code.

Use postfix code completionto transform an already typed expression into anotherone, such as creating a full loop over a listor turning an expression into an if statement.

You can use Command-J to see allthe valid postfixes for a given context.

For more complexpatterns, use live templates to inserttemplated code snippets.

For example, usinga toast shortcut makes it easy to add annew toast where only need to specify the text to display.

There are dozens ofgeneric and Android specific livetemplates, including a selection oflogging shortcuts, including log M thatinserts the current method name and the name and value ofeach parameter passed into it.

Easier log statementsare great for debugging, but did you knowyou can also set conditional breakpoints that canlog the output of expressions? It's also possibleto define a custom rendering for objects whileyou're evaluating expressions rather than relying ontheir two-string values.

There are so many handyfeatures in Android Studio that it's easy to forgetall those shortcuts.

Luckily, you justneed to remember one-- Command-Shift-A--and start typing keywords to find them.

For example, theStructural Search feature lets you searchfor code patterns without resorting toregular expressions.

If you enable Structural SearchInspection and borrow a mouse, you can even provide warningsaround methods and syntax that you wish to discouragewithin your code.

Similarly, you can use theStructural Replace feature to find and replace deprecatedcode or common anti-patterns.

And use StructuralSearch Inspection here to offer a replacementsnippet as a quick fix option.

There are hundredsof tips and tricks to make your AndroidStudio experience faster, more productive, andmostly mouse-free.

Subscribe to AndroidDevelopers on YouTube and tune into "Android ToolTime" for more Android tool time pro tips.



Thus Article Android Studio: (About) 10 Things You (Probably) Didn’t Know You Could Do

That article Android Studio: (About) 10 Things You (Probably) Didn’t Know You Could Do This time, hopefully we can give you all of the benefits. Well, I'll see you in another article post.

You now read the article Android Studio: (About) 10 Things You (Probably) Didn’t Know You Could Do the link address http://svedda79.blogspot.com/2016/08/android-studio-about-10-things-you.html

0 Response to "Android Studio: (About) 10 Things You (Probably) Didn’t Know You Could Do"

Post a Comment