| « Buzz about iFlash | Dynamically loaded BlazeDS configuration in Flex applications » |
Solved: change username in IntelliJ IDEA on Mac
Last week I’ve decided to give a try to IntelliJ IDEA. I’m a big fan of Eclipse IDE and platform and enjoy it a lot in my Java development but… But in real life I’m not only Java developer but Flex developer as well. So I had to use Flex/Flash Builder. And new version of that tool (Flash Builder 4) doesn’t fit my expectations. As far as the price for Builder and IDEA is almost the same why not to try an other option?
The first impressions about IDEA was “Why is it so ugly and unusable?". All this Swing vs good looking SWT in Eclipse with native behavior. As a Mac user I’m care about look and feel of applications which I’m using on everyday basis. And for me it is a huge weak of IntelliJ IDEA. Just take a look on screenshot from IDEA help and you can understand that point:

The pic is from IDEA manual. You’ll be surprised but that thing with “Local” is just tab
And that kind of ugly things are everywhere. When I’ve asked IDEA users about how they live with that tool windows or context menus with improper behavior they answer: we never used that panes or menus. We are using keyboard shortcuts.
As for me I’ve never remember all the shortcuts for all the software and technologies I have to use in our changing time. Just some essential set. Yesterday I’ve used technology A and IDE B and it will change tomorrow very easily. And all I need is convenience. Both with keyboard shortcuts and with context menus. And of course with my mouse/trackpad pointer ![]()
So the first impression is IDEA was designed by programmers and for programmers. In the worst sense of that. But don’t forget — it is just first impression. And maybe IDEA’s intelligence (everybody is talking about it) will compensate that look-n-feel weaks. Will see. Anyway I already had to switch off parsing JPA queries in my @NamedQueries section because this intelligent IDE can’t work well with valid JPQL statements ![]()
Nevertheless now I’ll talk about how to set the proper user name for JavaDoc/ASDoc @author section when you create a new class. If you’re Windows user the solution is over there. For Mac it is pretty simple too excepting one annoying problem…
Well first locate your IntelliJ IDEA app in Finder. You can jump there right from Doc with Show In Finder context menu item. Then in App’s context menu select Show Package Contents and locate Info.plist in package’s Contents folder. Navigate to VMOptions key and add to key’s value the following:
Code:
-Duser.name=<username> |
The problem is if your name contains space like in my case (Konstantin Kovalev). I’ve tried using quotes etc. without any success. The final solution is using unbreakable space. You can find and paste it easily in Edit>Special Characters… of your favorite text editor. Then just enter in search field “space” and select unbreakable. It works for me.
But maybe you know more proper way to do that?
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
4 comments
try to prefix the space character with backslash like this: Konstantin\ Kovalev
I've tried it earlier but without any success. It just gives me "Konstantin\" as a name
Have you tried debugging yet? I've seen some odd debug reports in my app where the debugger stack lies to me about where the call to some methods are coming from.
Bruce, do you mean debugging of Flex applications?