namrog84
|
 |
«
Posted
2013-09-15 19:29:51 » |
|
|
"Experience is what you get when you did not get what you wanted"
|
|
|
ra4king
|
 |
«
Reply #1 - Posted
2013-09-15 20:22:55 » |
|
Eclipse syntax coloring? Enjoy: http://eclipsecolorthemes.org/  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).
|
|
|
|
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!
|
|
|
ra4king
|
 |
«
Reply #4 - Posted
2013-09-15 21:21:19 » |
|
@Longarmx I prefer DejaVu Sans Mono, look into it! @h2n0 Bad link 
|
|
|
|
Several Kilo-Bytes
|
 |
«
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.
|
|
|
|
kpars
|
 |
«
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.
|
|
|
|
namrog84
|
 |
«
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"
|
|
|
|
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!
|
|
actual
|
 |
«
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?
|
|
|
|
kpars
|
 |
«
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.
|
|
|
|
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.
|
|
|
|
CaptainJester
|
 |
«
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.
|
|
|
|
Jimmt
|
 |
«
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.
|
|
|
|
namrog84
|
 |
«
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 
|
"Experience is what you get when you did not get what you wanted"
|
|
|
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.
|
|
|
|
Several Kilo-Bytes
|
 |
«
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?
|
|
|
|
ra4king
|
 |
«
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  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.
|
|
|
|
namrog84
|
 |
«
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! http://ktarsis.files.wordpress.com/2006/11/ktw300.gif
|
"Experience is what you get when you did not get what you wanted"
|
|
|
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
|
|
|
namrog84
|
 |
«
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"
|
|
|
matheus23
|
 |
«
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... ._.
|
|
|
|
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.
|
|
|
|
Orangy Tang
|
 |
«
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.
|
|
|
|
concerto49
|
 |
«
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 ShardsAvailable in Texas, New York & Los Angeles Need a VPS Upgrade?
|
|
|
SHC
|
 |
«
Reply #26 - Posted
2013-09-17 09:16:58 » |
|
Did another customization. GLSL Editor for Eclipse Juno. Are these colors nice?
|
|
|
|
CaptainJester
|
 |
«
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.
|
|
|
|
ra4king
|
 |
«
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?
|
|
|
|
|
|