FaqChangeUserGlobal

(Difference between revisions)
(Created page with '__NOTOC__ ==How to globally change the user name that is used in file templates? == # Go to Tools | Templates. # Scroll to the end of the Template Manager and expand 'User Confi…')
(How to globally set template variables like ${user})
 
(3 intermediate revisions not shown)
Line 3: Line 3:
# Go to Tools | Templates.
# Go to Tools | Templates.
-
# Scroll to the end of the Template Manager and expand 'User Configuration Properties'.
+
# Click the Settings button.
-
# Select 'User.properties' and click 'Open in Editor'.
+
# Now you can add set global variables in properties file format, for example:  
-
# Now you can add the above and set your own value, for example:  
+
<pre>user=DonaldDuck@disney.com</pre>
<pre>user=DonaldDuck@disney.com</pre>
Now, whenever you have ${user} in a file template, you will find the above value generated into the file that you create using that template.
Now, whenever you have ${user} in a file template, you will find the above value generated into the file that you create using that template.
-
 
-
Also, follow this issue, which aims to make the above more discoverable: [http://www.netbeans.org/issues/show_bug.cgi?id=127490 issue 127490].
 
--------
--------
-
  Applies to: NetBeans 6.x
+
Applies to: NetBeans 7.x
-
  Platforms: All
+
Platforms: All

Current revision as of 16:26, 18 January 2014

How to globally change the user name that is used in file templates?

  1. Go to Tools | Templates.
  2. Click the Settings button.
  3. Now you can add set global variables in properties file format, for example:
user=DonaldDuck@disney.com

Now, whenever you have ${user} in a file template, you will find the above value generated into the file that you create using that template.


Applies to: NetBeans 7.x

Platforms: All

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo