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

  • Home
  • SEARCH
  • 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 7930869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:33:22+00:00 2026-06-03T20:33:22+00:00

I just started using eclipse classic (v3.7.2), and I admit I am still pretty

  • 0

I just started using eclipse classic (v3.7.2), and I admit I am still pretty lost. What I am trying to do now is turn off ALL the auto-generated code eclipse comes up with when I create a class (and if it does it any other time, I would like that gone too.) I’m not talking about suggestions–it can give me drop down boxes with suggestions all it wants, but I do not want it writing ANY of my code for me–not even braces and parentheses. I want a blank screen when I create a class, and for the most part (pretty much except for auto-indentations and the drop down suggestions) I want eclipse to just mind its own business until I ASK it for something.

I managed to get rid of most of the auto-generated stuff through the window > preferences > java > code style > code templates options, but It still generates the class name and closing braces when I create a class:

public class Contact
{

}

Also, I cannot figure out how to get it to stop completing the braces and parentheses.

Thanks.

  • 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-06-03T20:33:23+00:00Added an answer on June 3, 2026 at 8:33 pm

    In Preferences > Java > Editor > Typing you can disable auto-closing of various things, including braces, strings, etc. But you can not get rid of the package declaration or type declaration portions of the “New Class” template. The only option I can think of is, instead of selecting to create a new Java class, instead create a plain file (which will be empty) in the appropriate source folder according to your package structure.

    Having said that, I’ve been programming for over 20 years and I can’t imagine any sane reason why you’d not want a tool to insert boilerplate, even minimal boilerplate like the class declaration. The bottom line is that Eclipse will not generate an invalid class that won’t compile, and an empty file is NOT a valid class. If you don’t want it to create a class, don’t ask it to create a class, ask it to create an empty file instead.

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

Sidebar

Related Questions

I just started using Eclipse so go easy on me ;). But when trying
I'm new to JSP, using Eclipse, and am trying to just get started with
I just started using Qt and noticed that all the example class definitions have
I have just started the Hello World App using Blackberry Eclipse Plugin. I have
I have just started learning to write apps for android using Eclipse. Where can
I'm currently working on a school project in Eclipse (We have just started using
I just started using XStream Annotations, and I am trying to figure out how
I just started using eclipse for some personal projects and am finding the transition
I've just started using Eclipse for Python development since we can make use of
I've just started using Eclipse and I noticed that when I start typing a

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.