IntelliJ IDEA overrides $ user

This is a fairly simple question, but I cannot find the answer to it using SO-Search and Google.

Is it possible to override the default $user VTL variable used in template files globally instead of setting it in each template using #set($user = "...") ?

Like some setup-script for IntelliJ itself, where can I change the value?

Thanks in advance.

By the way, I am using IntelliJ Ultimate 12.1.6.

+6
intellij-idea velocity vtl
Oct 27 '13 at 13:38 on
source share
1 answer

You want to modify the IntelliJ .vmoptions files in a text editor.

  • On Windows, edit IntelliJ-Install-Location/bin/idea.exe.vmoptions and / or IntelliJ-Install-Location/bin/idea64.exe.vmoptions .
  • On Mac OS X, edit IntelliJ-Install-App.app/Contents/bin/idea.vmoptions .

Inside these files, simply add or change the following line:

 -Duser.name=Your name 

If you recognize this syntax because Intellij IDEA uses the Java System property user.name to populate $user and ${USER} .

+13
Oct 27 '13 at 16:17
source share



All Articles