How to set the value of $ {user} in Netbeans 7.1.2?

I want to replace the default value of $ {user} in Netbeans. The help file says:

To define a parameter:

  • From the IDE's menu bar, select Tools> Templates. The template manager will open.

  • Expand the Other category. Double-click Properties. The editor opens the User.properties file.

  • Define a parameter. For example, define the $ {user} parameter to add your name to the templates you create. The syntax is " user=LorumIpsum@mycompany.com ". When the code template expands, all occurrences of $ {user} in this template are replaced with " LorumIpsum@mycompany.com ".

  • Add as many additional parameters as you want, with the syntax name = value.

In step 2, double-clicking on the properties does nothing. I tried to open the "Properties" template in the editor and add the "user" property. I also tried adding a file based on the Properties template to the project. None of them changed the output when I created a new file.

How to do it in Netbeans 7.1.2?

+6
source share
1 answer

When I compiled this question, I found a solution and I want to post it here so that others refer to it. The instructions in the Netbeans help file are incorrect. Step 2 should be amended as follows:

  • Expand the Other category. Click the "Settings" button. The editor opens the User.properties file.

I hope this will be useful to someone in the future.

+9
source

Source: https://habr.com/ru/post/921532/


All Articles