Results 1 to 7 of 7
Like Tree1Likes
  • 1 Post By pbrockway2

Thread: How to change the default piece of code?

  1. #1
    foki is offline Member
    Join Date
    May 2012
    Posts
    1
    Rep Power
    0

    Default How to change the default piece of code?

    How to change the default piece of code that appears every time I start new project in NetBeans?
    Java Code:
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    package unarydemo;
    
    /**
     *
     * @author
     */
    public class UnaryDemo {
        public static void main(String[] args) {
            
        }
    }

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default Re: How to change the default piece of code?

    That text is called a "code template". Search for that term within NetBeans' help menu option.
    DarrylBurke likes this.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,234
    Rep Power
    19

    Default Re: How to change the default piece of code?

    Choose Tools | Templates and open the template in the editor.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    End Of All is offline End Of All
    Join Date
    Jul 2012
    Location
    USA
    Posts
    17
    Rep Power
    0

    Default Re: How to change the default piece of code?

    I simply highlight and delete it.

    though, I use the newest version of Netbeans.v 7.1.2

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,006
    Rep Power
    20

    Default Re: How to change the default piece of code?

    Yes, you can do that, but you are supposed to change the template, which is why the message is there.

    Anyway, why reply to a 2 month old thread which has already been answered?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  6. #6
    End Of All is offline End Of All
    Join Date
    Jul 2012
    Location
    USA
    Posts
    17
    Rep Power
    0

    Default Re: How to change the default piece of code?

    just out of the shear enjoyment to share a thought with another person who might take the time to read it.

  7. #7
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: How to change the default piece of code?

    Quote Originally Posted by End Of All View Post
    just out of the shear enjoyment to share a thought with another person who might take the time to read it.
    But seeing how your answer is in no way better than the original answers, this may motivate folks to read less of your future posts.

Similar Threads

  1. Need help with a piece of code
    By sneeak in forum New To Java
    Replies: 13
    Last Post: 08-24-2011, 10:51 AM
  2. Can someone clarify this piece of code for me.
    By DavidPynes in forum New To Java
    Replies: 2
    Last Post: 04-17-2011, 10:22 AM
  3. Code to check if a piece of code is legal.
    By vahshir in forum New To Java
    Replies: 3
    Last Post: 08-30-2010, 04:21 AM
  4. small piece of code: cannot set a max
    By senca in forum New To Java
    Replies: 1
    Last Post: 03-06-2010, 08:26 PM
  5. Decode this piece of Code
    By mikeyl62 in forum New To Java
    Replies: 2
    Last Post: 02-27-2010, 08:59 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •