Skip to main content

Shortcut key to align code in eclipse


While learning java or working with java, we may need to copy a code from other source like internet or other files. When we do that the code may looks messy like before.

which is not in standard and difficult to work on complex logics.


Below key is useful to align the messy code:

     Ctrl + Shift + F: 

      • Formats a selected block of code or a whole source file. 
      • Format messy code to Java-standard code. 
      • If a code block is not selected, Eclipse applies formatting for the whole file.



#shortcut key to align code in eclipse
#shortcut_key_to_align_code_in_eclipse
#shortcut_key_to_format_code_in_eclipse
#shortCut key to format code in eclipse
#shortcut_key_to_code_alignment_in_eclipse
#Auto-Alignment Shortcut Key in Eclipse






























Comments

Popular posts from this blog

10 WhatsApp Tips and Tricks Everyone Should Know

For most of us, WhatsApp has become the default go-to messenger, because everyone's on it, and it's on nearly every platform. WhatsApp has over a billion downloads on Google Play alone, the only other messenger to boast that is Facebook Messenger. The app has made itself indispensable by adding a browser version and voice calling to its platform. For those who have to deal with the app on a daily basis, we've lined up some interesting tricks and tweaks that will improve your user-experience. 1. Mute group chats and notifications Group chat notifications can get noisy, they're best turned off when you have to focus on a task at hand. On Android On a group chat, tap the Menu button, and hit Mute. Then, choose the time-frame for which you would like the group to be muted. You can also disable notifications for the specified period. This feature is now available on the web browser too. On iPhone Open Group Chat, tap the group subject to reveal the Gr...

MongoDB and Hadoop

Traditional relational databases were ruling the roost until datasets were being reckoned in megabytes and gigabytes. However, as organizations around the world kept growing, a tsunami called “Big Data” rendered the old technologies unfeasible. When it came to data storage and retrieval, these technologies simply crumbled under the burden of such colossal amounts of data. Thanks to Hadoop, Hive and Hbase, these popular technologies now have the capability of handling large sets of raw unstructured data, efficiently, as well as economically. Image Credit :  http://www.compassitesinc.com Another aftermath of the above problems was the parallel advent of “Not Only SQL” or NoSQL databases. The primary advantage of the  NoSQL databases  is their mechanism that facilitates the storage and retrieval of data in the loser consistency model along with added benefits like horizontal scaling, better availability and quicker access. With its implementation in over five hun...