Android-eclipse Tips for use

Source: Internet
Author: User

Android-eclipse tips for use a Code accessibility feature

Show line Numbers


Code hints


Quick Notes

Line Comment ctrl+/

Block Comment ctrl+shift+/Remove ctrl+shift+\


Quick Switch edit window

Ctrl+f6


Uppercase Lowercase letter Toggle
Ctrl+shift+y all converted to lowercase

Ctrl+shift+x all uppercase, conflict with 360


working with line codes
ALT + arrow key up and down to move up or down
Alt+shift+ arrow keys up and down, you can copy the current line or multiple lines

Ctrl+d Delete When moving forward


Replication Parent class method

Bulk Get and set


Build constructor


Quick Import

Ctrl+shift+o


quickly generate Javadoc

Ctrl+shift+j


Code templates

Alt+shift+z


Renaming

F2


back to last edit point

Ctrl+q


Action edit window

ctrl+m Toggle Zoom
Ctrl+w off
Ctrl+shift+f4 Close all open
You need to add the FN key when you press the f* key in your notebook


Two Code specifications
Formatting code

Ctrl+shift+f using a custom format


Member sort

Organize the Import


Code Refactoring (important)
Rename

Re-name


Move

Move method


Change Method Signature

Change the method body


Conuert Anonymous Class to Nested

The function of refactoring is to change an anonymous class into an inner class.


push down, push up
To push a category member down into a subcategory of a category

To push a category member to the parent class of a category


Extract Interdace

Export interface


Extract Method

Export method


Extract Local Variable

Export Local Variables


exract Constant

Export constants


Convert Local Variable to Field

Converting local variables to fields

Introduce Parameter

Some parameters always appear naturally at the same time. Replace these parameters with an object


Modularity of the program

Android Library Mode


Java jar mode

Three code Reading
View Code Definitions

shift+ left button


Quick access to code definition

CTRL + Left


List the outline of a class

Ctrl+o, press out member method and variable once, list inherited methods and variables at once


View Inheritance Hierarchy

Ctrl+t View inheritance tree, top-down,

When you press convert to bottom-up


View Code Retreat

ALT + LEFT and RIGHT arrow keys. Used in the process of layer tracking, the lost code is used to


Quick Position Class

Ctrl+shift+t


quickly locate selected words

Ctrl+k


Quickly navigate to a match

Ctrl+shift+p


Incremental Lookup
Forward to Ctrl+j

Reverse Ctrl+shift+j


jump to a line quickly

Ctrl+l


Quick Comparison

Quick diff


Search

File content Search and Java search


Add bookmark and Task

Window is paged out in Show view




Android-eclipse Tips for use

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.