Skip to main content

Posts

Showing posts with the label Eclipse

Eclipse shortcut keys

This are some of the shortcut keys that I find useful while working with Eclipse . Key Action Ctrl+/ Comment out the current line Ctrl+\ Uncomment the current line Ctrl+D Delete the current line Ctrl+M Maximize editor view Ctrl+Alt+Arrow Up Duplicate current line, maintain caret location Ctrl+Alt+Arrow Down Duplicate current line, move caret location down Ctrl+Shift+p Find matching bracket Window Navigation Ctrl+F7 Move to different views. Ctrl+F6 Move to different editor windows Alt+Shift+Q+C Focus Console View Alt+F7 Switch between different consoles Misc Ctrl+O Quick Outline

Eclipse configuration

Oxygen.2 (v4.7.2): Base: Eclipse Platform Binary( link ) Tfs Integration: Team Explorer Everywhere ( link ) Python Editor: PyDev System Integration: StartExplorer( link )  Location: http://basti1302.github.com/startexplorer/update/ Subversion Integration: Subclipse Web Development: Eclipse Web Developer Tools XML Editor: Eclipse XML Editors and Tools Neon (v4.6.x): Base: Eclipse Platform ( link ) Tfs Integration: Team Explorer Everywhere ( link ) Python Editor: PyDev System Integration: StartExplorer( link )  Location: http://basti1302.github.com/startexplorer/update/ Subversion Integration: Subclipse Web Development: Eclipse Web Developer Tools XML Editor: Eclipse XML Editors and Tools Mars.1(v4.5.x): Base: Eclipse Classic Python Editor: PyDev System Integration: StartExplorer( link )  Location: http://basti1302.github.com/startexplorer/update/ Subversion Integration: Subclipse Tfs Integration: Web Development: Eclipse Web Developer Tools XML Editor: Ecli

Updating Eclipse Kepler shows 'Backup of file eclipse.exe failed'

Tried to update Eclipse Kepler but failed with message below. An error occurred while uninstalling session context was:(profile=epp.package.testing, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]org.eclipse.rcp.configuration_root.win32.win32.x86 1.0.0.v20130521-1847 --> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction). Backup of file D:\eclipse\eclipse.exe failed. Can not remove : D:\eclipse\eclipse.exe The workaround? Rename existing eclipse.exe to say eclipse1.exe Run eclipse1.exe Do Eclipse update 

"console: Failed to install '': java.nio.charset.UnsupportedCharsetException: cp0" message when opening a PyDev console

When opening a PyDev console using Jython 2.7b3, I am getting the following error message. console: Failed to install '': java.nio.charset.UnsupportedCharsetException: cp0 This does not show up in Jython 2.5. Note that this was already reported elsewhere, like: http://sourceforge.net/p/jython/mailman/message/32935457/ http://bugs.jython.org/issue2222%3E To workaround this issue, add  -Dpython.console.encoding=UTF-8 in PyDev configuration, see below for details.

Show Whitespace Characters toolbar in Eclipse

To show the toolbar associated with white space character, from main menu do  Windows | Customize Perspective... . Then select/enable  Tool Bar Visibility |  Editor Presentation |  Show Whitespace Characters . Customize Perspective Note that you may have to make Editor Presentation  available through Commands Groups Availability like below. Command Groups Availability

Eclipse TFS support

To install TFS support within Eclipse do: Open Eclipse Do  Help | Install New Software... . In Install software dialog, select Add... . Give it a name like "Eclipse TFS Plugin". In location, type  http://dl.microsoft.com/eclipse/tfs  then hit on OK button. Select  Team Foundation Server Plug-in for Eclipse , see below. Select Next  to proceed with the installation.  In Installation Details, select Next again. In  Review Licenses , select I accept the terms of the license agreements . Then hit on Finish . Select Yes on You will need to restart Eclipse SDK for the changes to take effect. Would you like to restart now? dialog. Oh the integration is awesome, head to  Installing the Team Foundation Server Plug-in for Eclipse for more details. Tested with Eclipse 4.2 on Windows 8 using JRE 7 update 10.

Show whitespace characters in Eclipse editor

From main Eclipse menu do, Windows | Preferences . Then  General | Editors | Text Editors | enable Show whitespace characters (configure visibility) . Show whitespace characters

Cannot move tool bar icons in Eclipse 4.2 Juno

Searching for tool bar actions in Juno shows that user should be able to unlock tool bar for customization. Unfortunately this function is not working, see bug 340695 . If you really wanted to move the icons there is a workaround. Change the theme to Windows 7 and restart. You should now be able to move items around. References: http://stackoverflow.com/questions/11301795/how-to-unlock-toolbars-in-eclipse-4-2-juno

Eclipse 4.2 Juno default configuration is very slow - how to make it a little faster

Eclipse 3.x series performed pretty good enough that I use it for XML and Python editing. But the latest Eclipse 4.2 Juno release is pretty slow on virtual machines. Few minor tweaks made it bearable for me. Open Preferences dialog ( Window | Preferences ). Expand to General | Appearance , then change Theme to Classic and disable Enable animations . Preferences - Theme to Classic

Setting up Eclipse 4.1 as IronPython IDE

There are various IDEs available out there that can be used for IronPython. One of them is Eclipse + PyDev + Subclipse for version control. The nice thing with this setup is that it provides intellesense and it does understand Python language well. Setting it up is fairly easy. First download Java Runtime, I have used v6 update 32 for this exercise. Second, download Eclipse 4.1 (4.1.2 as of this writing). The way I see it, version 4.x is not yet for the mainstream use but it does work fairly well. Third, install latest PyDev and finally install Subclipse for SVN integration. ~ts

Changing Eclipse text editor font

Working long hours tinkering with code can greatly strain your eyes. I think this is the reason why most programmers are so picky with the font they are using. I spend quite a lot of time looking for the best font (my personal best). Proggy fonts are quite good, so is Envy Code R. But for quite sometime, I believe more than a year, I developed love and hate relationship with Consolas . This font is optimized for Microsoft ClearType. The problem is not all of the machines I used are upgraded to RDP 6.x clients. Older remote desktop clients does not support ClearType, so I have to use non-cleartype friendly fonts. Courier New is good candidate but most of the time I settle with Proggy fonts. Anyway, to use Consolas in Eclipse 3.4.1 (Ganymede) is easy and oh note that this font is designed for VS2005 and VS2008. Just hit on Windows | Prerences | General | Appearance | Colors and Fonts | Basic | Text Font. See below for screen shot where to access this option. Step 1: Window | Prefer

Use Palm OS Developement Suite documentation in latest version of Eclipse

Palm OS Developer Suite v 1.2 comes with Eclipse 3.0.x and CDT 2.0.2.ps002 which is quite outdated. Latest Eclipse version as of this writing was 3.2.1 with CDT at version 3.1.1. This latest CDT comes with lots of goodies like bracket matching and code folding which is absent in the CDT that comes with PODS. To use the documentation from PODS to the latest version of Eclipse copy the following directory including the files: com.palmsource.eclipse.sdk.palmos5.doc.user_1.2.0.23 com.palmsource.eclipse.tools.doc.user_1.2.0.23 Assuming default install these files should be located in C:\Program Files\PalmSource\Palm OS Developer Suite\eclipse\plugins. Copy this files into \plugins