Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (489)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (555)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2
  ignore  |  Print  
  Do you customize your IDE (Eclipse?)  (Read 3189 times)
0 Members and 1 Guest are viewing this topic.
Offline namrog84

JGO Ninja


Medals: 46
Projects: 4


Keep programming!


« Posted 2013-09-15 19:29:51 »

Do any of you do any form of customization to Eclipse (or other IDE)  when you are java coding?  Aside from default setup

For example, do you have a slightly or heavily modified  (Code Formatter) (Import/exportable)

I recently customized my Syntax Coloring a bit, to maybe better help with clarity in things.  However I am not sure what would be ideal colors to best differentiate things?  Thoughts/suggestions/screenshots of yours?


Do you have any custom made shortcut keys?   macros or mini scripts?  Do you use any "templates" on any regular basis?

I very rarely ever interact or see people code in real life(and when I do, they are usually just starting to code) Sad  So I am not sure if I maybe haven't developed useful habits on certain things.
So I was just curious if there are any popular habits people have that I could maybe adopt and find useful.


 Roll Eyes Shocked Yawn persecutioncomplex Pointing Lips Sealed Huh Huh Huh Cool Grin Cheesy Wink Smiley



"Experience is what you get when you did not get what you wanted"
Offline ra4king

JGO Kernel


Medals: 345
Projects: 3
Exp: 5 years


I'm the King!


« Reply #1 - Posted 2013-09-15 20:22:55 »

Eclipse syntax coloring? Enjoy: http://eclipsecolorthemes.org/ Smiley

I don't use Eclipse, I use IDEA, but I still have it heavily modified. I played around with the formatter A LOT, and have my own custom syntax coloring. I also have Eclipse's keymap set in IDEA plus a bunch of my own custom shortcuts.

No macros/scripts/templates though, don't really use those at all (except psvm = public static void main).

Offline Longarmx
« Reply #2 - Posted 2013-09-15 20:26:05 »

I have mine formatted to how I like it. Like putting brackets in the right spots, indenting, and white space. The only other modification I have tried to do is change the font, but all the ones I tried we're just too hard to read or were too narrow.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline h2n0
« Reply #3 - Posted 2013-09-15 21:05:54 »

Here is what mine looks like very colorful and custom formatted  Grin


EDIT: All fixed, thanks @ra4king Smiley
Offline ra4king

JGO Kernel


Medals: 345
Projects: 3
Exp: 5 years


I'm the King!


« Reply #4 - Posted 2013-09-15 21:21:19 »

@Longarmx
I prefer DejaVu Sans Mono, look into it!

@h2n0
Bad link Wink

Offline Several Kilo-Bytes

Senior Member


Medals: 11



« Reply #5 - Posted 2013-09-15 22:51:19 »

Syntax coloring is not nearly as useful for identifying code at a glance as white space is. I put brackets on separate lines so that they are alined. It makes control flow structures easier and methods to see. Code that takes more than one line is indented by a slightly amount than the normal indent so it is visually obvious what is and isn't a continuation of a previous line. I also break the rule about CONSTANT_VARIABLES because, really... we have character sets with both upper AND lower case letters. Camel case is superior because it's easier to read and doesn't have underscores. Underscores introduce negative space that looks like white space which makes it harder to "visually parse" code while holding down the page down button or at a glance.

I also made new templates for things like System.out.println, the millesecond time, the nano second time, and System.exit. I plan to consolidate my commonly used utility methods and classes and find a way to automatically import and static import them, as well as the Math functions. I don't know where to start with that. I use templates a lot but only for a few specific things. I don't always consciously think about what to add, so I am sure I am missing good ones.

My preferred color system is light text on dark blue or black. I haven't "optimized" my syntax highlighting yet, but these styles seem to cause the least eye strain.
Offline kpars

JGO Wizard


Medals: 77
Projects: 4
Exp: 3 years


Extreme Typist.


« Reply #6 - Posted 2013-09-15 23:10:36 »

I too have amazing syntax highlighting:


You can download the theme here.

I also toyed around with the panels in the GUI to make everything a bit more minimal. This is how my average workspace looks:



But if you really want to customize it so your workflow is easier, I HIGHLY recommend that you change the auto-format settings.  

Just go to Window > Preferences. Then once you're there, go to Java > Code Style > Formatter.
Toy around with the settings till they fit your needs. When I discovered this, I felt like I was in heaven.

I have a question myself, though. How would I get something like the side-map from Sublime Text working in Eclipse?

- Jev.

Offline namrog84

JGO Ninja


Medals: 46
Projects: 4


Keep programming!


« Reply #7 - Posted 2013-09-15 23:11:23 »

For those who customized their eclipse,  even though I prefer a dark background, the reason I have never switched is because this happens



is there a way to fix that that?

Also, ra4king, any particular reason for liking IDEA?  or disliking eclipse?

"Experience is what you get when you did not get what you wanted"
Offline ra4king

JGO Kernel


Medals: 345
Projects: 3
Exp: 5 years


I'm the King!


« Reply #8 - Posted 2013-09-15 23:19:18 »

@kpars
Never compare strings using '=='! Using the 'equals' method!

For your question........you can't. Smiley

@namrog84
http://www.java-gaming.org/topics/i-switched-to-idea/28946/msg/264366/view.html

Offline Cero
« Reply #9 - Posted 2013-09-15 23:26:04 »

What the fuck is it with people and dark background when coding ?
Is it just me or don't you get blind by looking at white text on black background. It burns into my retina and I can't see anything else anymore for a minute D:

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline actual

JGO Coder


Medals: 23



« Reply #10 - Posted 2013-09-15 23:29:44 »

While I don't like white on black, I do find light text on a darker background to be easier on the eyes especially when I am coding at night. Most of the websites, docs, etc. that I am consulting while programming are dark on light so maybe it's just the variety that helps?
Offline kpars

JGO Wizard


Medals: 77
Projects: 4
Exp: 3 years


Extreme Typist.


« Reply #11 - Posted 2013-09-15 23:33:44 »

You happy, ra4king?

Noting my question, there was a thread here before where I saw something very similar. Though I'm probably wrong.

- Jev.

Offline Jeremy
« Reply #12 - Posted 2013-09-15 23:54:53 »

Only change I made is for Eclipse to put the opening brace after a function on a new line. Other than that the defaults are fine for me. I've never thought of changing the colours but I may.

JevaEngine, Latest Playthrough (This demo is networked with a centralized server model)

http://www.youtube.com/watch?v=rWA8bajpVXg
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #13 - Posted 2013-09-16 01:06:24 »

Syntax coloring is not nearly as useful for identifying code at a glance as white space is. I put brackets on separate lines so that they are alined. It makes control flow structures easier and methods to see. Code that takes more than one line is indented by a slightly amount than the normal indent so it is visually obvious what is and isn't a continuation of a previous line. I also break the rule about CONSTANT_VARIABLES because, really... we have character sets with both upper AND lower case letters. Camel case is superior because it's easier to read and doesn't have underscores. Underscores introduce negative space that looks like white space which makes it harder to "visually parse" code while holding down the page down button or at a glance.
That would be personal preference. I find having braces on separate lines messy and distracting. I use extensive syntax highlighting and that makes it easy to read the code.

I also set up CTRL-TAB as a shortcut for quick editor switching. I move perspectives and views to the left side with no text for easy access. I also maximize the editor window and quickview all the views.

Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 128
Projects: 4
Exp: 3 years



« Reply #14 - Posted 2013-09-16 01:14:27 »

I've tried both NetBeans and Eclipse themes before but hated both. I'm so used to reading and writing in their respective default syntax highlighting that any changes just confuse my eyes. IMO, if the default theme doesn't hurt your eyes, there's no need to switch.
Offline namrog84

JGO Ninja


Medals: 46
Projects: 4


Keep programming!


« Reply #15 - Posted 2013-09-16 03:14:31 »


You've convinced me and I am going to download and try it out for a bit, also gonna follow your lead, with switching keyboard shortcuts and going with the same theme.
You said you modified some of it, you should post it somewhere and send me a link  Pointing    Smiley

"Experience is what you get when you did not get what you wanted"
Online SHC
« Reply #16 - Posted 2013-09-16 03:29:37 »

This is my workspace.



The only thing I changed is to remove the side 'Classes' pane.

Offline Several Kilo-Bytes

Senior Member


Medals: 11



« Reply #17 - Posted 2013-09-16 03:45:40 »

That would be personal preference. I find having braces on separate lines messy and distracting. I use extensive syntax highlighting and that makes it easy to read the code.

Okay, but you admit that my syntax coloring preferences and naming schemes are 100% objective. I forgot to mention my indent size is two. When the indent size is ridiculously, impractically large, there is much less marginal utility to one style versus the other. Although to be honest I prefer BASIC style grouping to no-free-line style brackets. In my method you can use the nearly blank line as a "bookmark" and there is a structural symmetry that makes it easy to scan. BASIC syntax also makes it clearer which blocks belong to which initial line, but it's not my favorite.




What the fuck is it with people and dark background when coding ?
Is it just me or don't you get blind by looking at white text on black background. It burns into my retina and I can't see anything else anymore for a minute D:

I would not use white on black for anything. Orange is much nicer since it's the least intense color while still providing readable contrast. (Try bright yellow on dark blue if you want to hurt your eyes. Apparently certain color combinations cause eye strain but also make the contrast seem more intense.) Of course for programming the dark background is not usually pure black (either a dark shade or gray) and the foreground is a mix of pastel colors. For monospace fonts, light on dark seems at least as readable as dark on light for some reason. On the other hand non-monospace fonts use different techniques to make text more readable, so you can't compare websites and paper to IDE colors.

@kpars: How does the side output window work for you? Doesn't the text get cut off or wrapped a lot?
Offline ra4king

JGO Kernel


Medals: 345
Projects: 3
Exp: 5 years


I'm the King!


« Reply #18 - Posted 2013-09-16 03:55:45 »


You've convinced me and I am going to download and try it out for a bit, also gonna follow your lead, with switching keyboard shortcuts and going with the same theme.
You said you modified some of it, you should post it somewhere and send me a link  Pointing    Smiley
Font = DejaVu Sans Mono
Colors = Only thing I changed was "Keyword" to #109ECC from that orange color. I didn't like the orange.
Formatting = Using "Eclipse Code Formatter" plugin. Use that plugin *only* to have tabs on blank lines. Otherwise, use IDEA's built-in formatter.

Offline namrog84

JGO Ninja


Medals: 46
Projects: 4


Keep programming!


« Reply #19 - Posted 2013-09-16 04:54:06 »

Font = DejaVu Sans Mono
Colors = Only thing I changed was "Keyword" to #109ECC from that orange color. I didn't like the orange.
Formatting = Using "Eclipse Code Formatter" plugin. Use that plugin *only* to have tabs on blank lines. Otherwise, use IDEA's built-in formatter.

Thanks!!
Also you just hit 300 appreciation! Cheesy  http://ktarsis.files.wordpress.com/2006/11/ktw300.gif

"Experience is what you get when you did not get what you wanted"
Offline Cannonball7171

Senior Newbie


Exp: 1 year


Semi-Beginner Coder


« Reply #20 - Posted 2013-09-16 12:03:03 »

I don't quite customize Eclipse since it always resets the settings every time I create a new workspace (unless there's a way to keep the settings as I've set them)

"If you're going through Hell, keep going." -Winston Churchill
Offline namrog84

JGO Ninja


Medals: 46
Projects: 4


Keep programming!


« Reply #21 - Posted 2013-09-16 15:40:11 »

Why or how often do you need to create new workspaces?

and many settings are importable/exportable


"Experience is what you get when you did not get what you wanted"
Offline matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #22 - Posted 2013-09-16 16:20:07 »

I don't quite customize Eclipse since it always resets the settings every time I create a new workspace (unless there's a way to keep the settings as I've set them)

Wow. In my whole time I was working with eclipse I've never created a second workspace... ._.

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Online SHC
« Reply #23 - Posted 2013-09-16 16:22:23 »

I have created two workspaces. One for tool projects and the other only for pure game projects.

Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #24 - Posted 2013-09-16 16:34:05 »

I don't quite customize Eclipse since it always resets the settings every time I create a new workspace (unless there's a way to keep the settings as I've set them)

File->Export->Settings in the original workspace, then File->Import->Settings in the new workspace?

Alternatively, you can kind-of do the same thing with 'working sets', which is basically a set of projects that you can open/close as a group.

I don't tend to customise my programming tools a huge amount (Eclipse, Visual Studio, etc.), I find it really helpful to stick as close to the 'factory settings as possible. Firstly you tend to find less bugs since you hit less edge cases, and secondly it's much easier to switch to working on other people's machines, or for other people to work on yours. I count that as a huge win when working in a team.

About the only thing I do in Eclipse is crank up the compliance/compiler checking to near max.

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline concerto49

Junior Member





« Reply #25 - Posted 2013-09-17 08:23:42 »

I change all the formatter / cleanup / etc settings. Have recently installed Lombok and it's been very useful. Other than that, no.

High performance, fast network, affordable price VPS - Cloud Shards
Available in Texas, New York & Los Angeles
Need a VPS Upgrade?
Online SHC
« Reply #26 - Posted 2013-09-17 09:16:58 »

Did another customization. GLSL Editor for Eclipse Juno.


Are these colors nice?

Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #27 - Posted 2013-09-17 11:41:32 »

Okay, but you admit that my syntax coloring preferences and naming schemes are 100% objective. I forgot to mention my indent size is two. When the indent size is ridiculously, impractically large, there is much less marginal utility to one style versus the other. Although to be honest I prefer BASIC style grouping to no-free-line style brackets. In my method you can use the nearly blank line as a "bookmark" and there is a structural symmetry that makes it easy to scan. BASIC syntax also makes it clearer which blocks belong to which initial line, but it's not my favorite.
Again personal preference. I don't like the white space after the for line. I find it harder to read not easier. I also tab 4 not 2. If you need 2 because your nesting so much that it goes off the screen you have to look at your logic to reduce the nesting.

Offline ra4king

JGO Kernel


Medals: 345
Projects: 3
Exp: 5 years


I'm the King!


« Reply #28 - Posted 2013-09-17 14:38:31 »

Did another customization. GLSL Editor for Eclipse Juno.

{image}

Are these colors nice?
How did you do that?

Offline ClickerMonkey

JGO Coder


Medals: 20


Game Engineer


« Reply #29 - Posted 2013-09-17 14:47:45 »

[Maybe this?](http://sourceforge.net/projects/webglsl/)

Pages: [1] 2
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Nickropheliac (12 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

CopyableCougar4 (27 views)
2014-08-22 19:31:30

atombrot (40 views)
2014-08-19 09:29:53

Tekkerue (38 views)
2014-08-16 06:45:27

Tekkerue (34 views)
2014-08-16 06:22:17

Tekkerue (24 views)
2014-08-16 06:20:21

Tekkerue (34 views)
2014-08-16 06:12:11

Rayexar (72 views)
2014-08-11 02:49:23

BurntPizza (47 views)
2014-08-09 21:09:32
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!