Friday, March 11, 2011

How to change a file extension in NetBeans

I had a .html file that I wanted to change to .php, but NetBeans doesn't let you change the extension with the Rename or Refactor menu option.

To change the file extension in NetBeans, right-click the file and choose Properties. In the Properties window, under Extension, change the value, and hit Close. 

6 comments:

  1. Kudos for sharing!

    ReplyDelete
  2. Thanks for sharing! This beats going to the filesystem.

    ReplyDelete
  3. Thank you very much for the help.
    They made this necessarily complicated.

    ReplyDelete
  4. When I follow your steps it works with all my HTML-Files except for the one i needed for, there is just no extention tag-thing in the properties-window

    ReplyDelete
  5. That file must be opened. Close it and go to properties of that file, you will find the option extension for that file too.

    ReplyDelete