Eclipse and Windows newlines

As mentioned here and here: Set file encoding to UTF-8 and line-endings for new files to Unix, so that text files are saved in a format that is not specific to the Windows OS and most easily shared across heterogeneous developer desktops: Navigate to the Workspace preferences (General:Workspace) Change the Text File Encoding to UTF-8 … Read more

Eclipse: have the same file open in two editors?

Open your file and then Window->New Editor (Note: in newer versions it will be called New Window) Then, click on its tab and drag it somewhere else to have two editors of the same file Update: as mentioned by moschlar, From version 4.4, two editors can be created with Window -> Editor -> Clone.

How to comment a block in Eclipse?

Ctrl–/ to toggle “//” comments and Ctrl–Shift–/ to toggle “/* */” comments. At least for Java, anyway – other tooling may have different shortcuts. Ctrl–\ will remove a block of either comment, but won’t add comments. Note: As for Eclipse CDT 4.4.2, Ctrl–Shift–/ will not uncomment a “/* */” block comment. Use Ctrl–Shift–\ in that … Read more

Open multiple Eclipse workspaces on the Mac

This seems to be the supported native method in OS X: cd /Applications/eclipse/ open -n Eclipse.app Be sure to specify the “.app” version (directory); in OS X Mountain Lion erroneously using the symbolic link such as open -n eclipse, might get one GateKeeper stopping access: “eclipse” can’t be opened because it is from an unidentified … Read more

How to change context root of a dynamic web project in Eclipse?

I’m sure you’ve moved on by now, but I thought I’d answer anyway. Some of these answers give workarounds. What actually must happen is that you clean and re-publish your project to “activate” the new URI. This is done by right-clicking your server (in the Servers view) and choosing Clean. Then you start (or restart … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)