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

Export Internet Explorer Security Zone Information

Internet Explorer assigns a security zone to any website that the user is visiting. Next to the two generic zones Internet (all that are not in another zone), Local Intranet (local sites) are Trusted sites and Restricted Sites. Trusted sites will usually have a lower security level than restricted sites. One could for instance move financial sites or sites from companies like eBay or Amazon into the Trusted sites list. Restricted sites are those that should be accessed with lower permissions. Good for websites that need to be accessed but are not that trusted. If a user accesses the Internet with multiple computers he might want to use the same security zone settings on all of them. The easiest way to do that would be to export the security zones on one computer and export them to all others instead of adding sites to the zones manually on all computers. Internet Explorer is storing the security zone information in the Windows Registry. To export the settings of the currently log

The First 10 People Who Sign up On Facebook

The First 10 People Who Sign up On Facebook 10. Zach Bercu sphotos-b.xx.fbcdn.net “The past eight years have been extraordinary,” Bercu said. A graduate of Emory’s medical school, Bercu spent a year in Israel, where he became fluent in Hebrew. He completed his residency in New York, part of the last intern class at St. Vincent’s, whose “hospital infrastructure crumbled around me,” he remembered of the facility, which closed in 2010. Now a resident at Mount Sinai in radiology, Bercu plans to complete a fellowship in interventional radiology, a form of “micro-surgery.” From his undergraduate years, “whether through Facebook or in person,” Bercu says he “took with me some of the greatest friendships one could have.” 9. Manuel Antonio Aguilar publicogt.com Aguilar calls himself a social entrepreneur “focused on the base o

Enable USB 3.0 in the VirtualBox Manager

Enable USB 3.0 in the VirtualBox Manager.  If you use the Pen Drive which is USB 3.0 in the virtual box it may not be detected in the VM machine. To make it detected in the VM machine, you need to enable the USB 3.0 in the Virtual box manager. * Open the VirtualBox Manager.  * Click on the Setting to the machine you need to enable the USB 3.0. * Click on the USB Icon from the setting Page. * Check for the USB 3.0 Radio Button. Install Oracle Extension Pack to enable USB 3.0 in VirtualBox manager. To enable the USB support (USB 2.0 or 3,0) on the Oracle VM VirtualBox Guest machine, you must install Oracle VM Extension Pack on the Host machine. Shutdown the Guest machine. Download Oracle VM VirtualBox Extension Pack . When download is completed, double click to launch the " Oracle_VM_VirtualBox_Extension_Pack-5.x.x.x.vbox-extpack " installer.  Follow the on screen instructions to install the Extension Pack on your computer. After Completing Instruction restart the oracle Virt