Geertjan's Blog

  • February 22, 2015

How to Quickly Create New Java Files

Geertjan Wielenga
Product Manager

I was looking at the Quick Search field a few days ago with a programmer friend and we were also discussing the New File dialog and how clunky it is to find how to create new Java source files there. So I thought, why not integrate relevant templates from the New File dialog into the Quick Search field?

Here's the result, i.e., notice that when I type "java", I can see (for the first time thanks to this new plugin I created) various Java file templates are available which, when clicked below, cause the relevant New File dialog to appear, all filled out with the values of the currently selected project. If no project is selected, or a file within a project, a message appears informing you of that requirement, since Java files need to be created within projects.

Source code:


Join the discussion

Comments ( 3 )
  • Andrew Gilmartin Tuesday, February 24, 2015

    Very nice tool. I tend to work off of a laptop and so keep very little on the screen except the code. Is there a way to access the Quick Search without having to have the toolbar visible? Similar to the way that QuickSilver/Alfred/Spotlight work on the Mac, for example.

  • Geertjan Tuesday, February 24, 2015

    That's precisely what I'm working on right now, watch this space.

  • Geertjan Tuesday, February 24, 2015

    Actually, the Quick Search is not in the toolbar, but in the menubar. When you press Ctrl-Shift-Enter, you'll be in "Show Only Editor" mode, which means there's no toolbar (and no other windows) except the editor and the menubar. In the menubar, you'll see the Quick Search field.

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.