Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to add comments to eclipse.ini file

Tags:

eclipse

ini

I wanted to comment some custom parameters I am using now, to remember why they are there the next time I edit it.

But I cannot find any reference to comments in this file. Only this, but it is pretty old and hopefully there is a way to add comments now.

Somebody knows?

like image 737
Persimmonium Avatar asked May 26 '11 10:05

Persimmonium


People also ask

How do I comment in Eclipse ini?

load(FileInputStream) method. So since "#" works as a comment signal in a Java properties file, it works as one also in eclipse. ini.

How do I add comments to an INI file?

Comments in the INI must start with a semicolon (";") or a hash character ("#"), and run to the end of the line. A comment can be a line of its own, or it may follow a key/value pair (the "#" character and trailing comments are extensions of minIni).

What is Eclipse INI file?

eclipse. ini is the configuration file used to control the Eclipse startup. We can configure Eclipse VM arguments such as JDK to be used (eclipse. ini vm), permgen space, maximum and minimum heap size using Xms, Xmx parameters.


2 Answers

Comments can be marked with semicolon (;) or hash (#) (at least on Windows)

like image 117
dunni Avatar answered Sep 24 '22 12:09

dunni


Eclipse 4.5.2 on Windows 7, # is working for me. but be careful, key - value are in separate line in eclipse.ini and you need to comment out key-value in same time. I added a example.

Working

#-clean -startup plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar -showlocation #-vm #C:/dev/software/jdk1.8.0_121/bin/javaw.exe -vm C:/dev/software/jdk1.8.0_131/bin/javaw.exe 

Not working

-vm #C:/dev/software/jdk1.8.0_121/bin/javaw.exe C:/dev/software/jdk1.8.0_131/bin/javaw.exe 
like image 28
Thomas K. Avatar answered Sep 22 '22 12:09

Thomas K.