Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3432842
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:30:00+00:00 2026-05-18T07:30:00+00:00

Eclipse is very handy for generating javadocs for me. I have it set up

  • 0

Eclipse is very handy for generating javadocs for me. I have it set up to generate a class javadoc in the following format simply by pressing Ctrl-Shift-J:

/**
 *****************************************************************************
 * Class name - Desc
 *
 * @author Scott Johnson
 * @version 1 <timestamp>
 *****************************************************************************
 */

I’d like to be able to generate a new @version tag, though, with a similar keypress. Is there any way I can bind a key combination (such as Ctrl-Alt-Shift-T or V) to automatically place a new timestamp in the comment?

Ideally, I’d like to have something that would add a new version to the class javadoc – so if I had something like:

 /**
 *****************************************************************************
 * MyClass - A simple example
 *
 * @author Scott Johnson
 * @version 1 1:36:04 PM Feb 16, 2010
 *****************************************************************************
 */

And I pressed Ctrl-Alt-Shift-T (or whatever) over the class name, it would add the following line:

 * @version 2 2:28:04 PM Nov 16, 2010

underneath

 * @version 1 1:36:04 PM Feb 16, 2010
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T07:30:01+00:00Added an answer on May 18, 2026 at 7:30 am

    One option would be to create a Template (Java -> Editor -> Templates if you are using java).

    Name the new template “@version” and in the pattern field write:

    ${cursor} ${time} ${date}
    

    This will insert the current date and type and place your mouse cursor where in your current example the version number would go.

    Now when you are in the java perspective and you write @version pressing command spacebar should execute your template.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a very specific eclipse plugin that will tell me if a
I'm trying to add a very simple action to the context menu of Eclipse:
I just installed Ubuntu 8.04 and Eclipse. I made a very simple Hello World
(Eclipse 3.4, Ganymede) I have an existing Dynamic Web Application project in Eclipse. When
Eclipse issues warnings when a serialVersionUID is missing. The serializable class Foo does not
Eclipse is giving me a warning of the following form: Type safety: Unchecked cast
In Eclipse, I have a workspace that contains all of my projects. Each project
Im sure there is a very simple solution for this. I have a bunch
Anytime I have to re-import my projects into Eclipse (if I reinstalled Eclipse, or
In my job project I have recently been asked to generate POM files via

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.