IDE Android studio Eclipse

来源:互联网 发布:java mail 附件 io 编辑:程序博客网 时间:2024/06/05 20:32

Android Studio

cmd + /

block comment /  sometimes folder the selected code ?

CTRL + ALT + L

(Win/ Linux)  code format

F11

bookmark

CTRL + SHIFT + N

Open file

Cmd + '+'

Collapse: Cmd + '-'

shift + cmd + '+' /shift + cmd + '-'

Collapse all

 

 

 

Eclipse

For single line comment you can use Ctrl + / and for multiple linecomment you can use Ctrl + Shift + / after selecting the lines you want tocomment in java editor.

 

Teamfoundation server

Installthe tfs widget

Help-> install a new software -> Add -> name tfs, locationhttp://dl.microsoft.com/eclipse/tfs

Openthe tfs window

Window-> open perspective -> team foundation server

 

 

 

Import Eclipse project to android studio

Method1:  open android studio -> import -> selecteclipse folder, 

Result:only src folder is imported

 

Method2:open eclipse -> export -> select gradle project   (after that, you will find lots of gradlefile are generated in eclipse folder

        then open androidstudio -> import -> select above gradle project

 

Youcan now delete the eclipse folder's bin, gen folder, but libs folder shouldmaintain

(Eclipseis stupid, several module use different libs but they are have all copys ineach libs

 

Eclipseandroid manifest has several <application>  you should delete all other<application> only keey the main module one

 

Eclipseandroid manifest doesn't check the minsdk version,  you should change all module manifest to havethe same biggest minsdk version

0 0
原创粉丝点击