Android Internship notes (9)---set eclpise to quickly align with the code

Source: Internet
Author: User

Android Internship notes (9)---set eclpise to quickly align with the code



The author's some nonsense: (just recently the mood is too bad, spit trough only ~)

Feel a long time have not written blog, see the last blog is November 21, has been 12 days did not write their own internship notes,

Not nothing can, but recently really bad luck, a lot of trouble, it is not quiet heart to come to the company, the 12th

A week to look at documents, write small demo What, still passable, the days are pretty moist, occasionally can write down the blog, but a third

The week began with a bad luck, because the author of the company is an outsourcing company, it may be a long time ago they received a outsourcing bar,

But the two sides have been there tangled, our company has been asked each other to take the DB, but the other side buck, the customer said to tell them to see that

That's okay, and then make excuses to kick the ball to us, no data, how do we do it? The company seems to be getting another one.

Outsourcing! The front of the project has been dragged, the boss said no way, no data to do a hair, and then, and embarrassed to say that nothing has been done,

Because the other people in the company are busy with other projects, so, this pit dad's stuff fell on me, iOS has done

Basic UI, and then asked me to follow a UI, I look at the layout of what is not difficult ah, and then began to busy (here the author is not good

And did not go to ask clearly, according to their own wishes to write, everyone will do to ask clearly AH!!! ) for three days, and finally

Wrote a few modules of the interface, and then the team leader said I gave him the code to see, the result was a batch, code a variety of slag, where the name is not standardized

, here do not jump page with fragment etc... Looking at their hard-working code to give a lot of useless, then really frustrated,

This feeling is really uncomfortable, no way, can only rewrite! Like a dead dog, according to the format of the reference code he gave, the naming specification,

Again write again, finally in Friday afternoon finished (because Friday to send apk to each other to see), to the Boss check, the result is a criticized!

There is a problem, there is a problem, and then in the team leader's help, reluctantly put together the basic! The leader said the code is not good, this should be changed, then to change,

Monday change, after all, still have to re-write, the mood of that day is really bad, very poor, all kinds of unhappy, and girlfriend Quarrel, now is fast

Scattered, so in the dormitory played two days lol, tired on sleep, woke up to eat, eat full of play, so in the dorm house for two days, then Monday again to work

Rewrite the code, the title bar, the bottom navigation bar as a view, the activity of the place is changed to use fragment and so on, a pile of things, feel every day

Have not happy, not happy, back to the dorm do not want to do anything, open a computer to play games, play to 12 points more bath to sleep, the next day to go to work,

So back and forth, feeling very painful, do not want to do anything, write code is very slow, of course, also to people say! Code is not written well, writing slowly ...

There is no way ah, brother, I am not you do for a few years ah, I am an intern ah, you have to give a time I adapt Ah, I am not

Daniel Big God or something, eh, or bite teeth stick down, to now also calculate barely adapt to it, criticized the number of times than before a lot less,

But there will be, a bit of progress, but also a more gratifying thing! Thought the unlucky luck has passed like this ~ ~ Behold, still had the big moment to leave

Mouse excrement-high number, he's next Tuesday make-up, I make up a hair ah, hey, now can graduate all the problem, all kinds of impatient gas!

I do not know, and so die, even the girlfriend is away from me, can have what way, on their own road, more and more feel confused ~

Can not find to talk to the object, only a paper, writing the mood is a little more comfortable, although I may speak to the air! The backlog has been so long

Emotions, but also found the place to release it ~ Thank you! Hope to regain your mood soon ...





Text:


I. eclpise set to Wink (red bean paste green)


Problem Description:

I believe you developers use Eclipse to write code for a long time, the eyes will feel sour fatigue, after all

The original background was pale, saved the natural after this, and here the words, teach you to set eclipse into Eye protection (red bean paste green)



Steps to resolve:

Open the settings in the following order:

Window-Preferences, point open Germal, click on the text Editors, and then you can see the following:




Click to enter: Customize a color value: Set the following parameters (respectively:85,123,205):



Good-looking red bean paste Green background color is set up, of course, you can also set your own needs of the comments, symbols, class names, and so on color, or set

Font type, see a person likes, because space is not more explained, the author will have time to fill in the!!!








two. Quick alignment of Eclipse code


Problem Analysis:

Most of the time, the code must be beautiful, the alignment appears to be important, so, manually go to the tab or the space, this can really make

Our code looks good, but what if we have a lot of code? Dozens of files? Obviously, a row of lines drops to typesetting

Obviously impractical, Eclipse also provides us with a quick typesetting function! It's easy to use!




① directly in the Eclpise menu bar, click Source---format, see, the messy code is so aligned! hehe!






② Of course you can also use shortcut keys directly: Ctrl + Shirt + F


Note: Many times, you may press this shortcut key is invalid Oh, haha, feel to the author pit! In fact, this is a shortcut key conflict,

many times the main culprit of this conflict is Sogou Input Method , I believe most of the friends of the input method is this bar, open the Sogou settings options

Locate the shortcut key Settings bar:




Change it to something else, then go back to your eclipse and try to mess up the Code, (*^__^*) hehe ...

Mom doesn't have to worry about my code layout anymore.



Okay, today's a little bit of nonsense, and then said something very simple, but the heart is much more comfortable, thank you

Everyone's encouragement, the pig will persist, believe bite teeth will pass, refueling





Android Internship notes (9)---set eclpise to quickly align with the code

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.