Be sure you DO NOT edit the files in /Applications as they get overwritten when you upgrade.
Instead, this script works for me to edit the files. Substitute your favorite editor for vim.
cp /Applications/RubyMine.app/Contents/bin/rubymine.vmoptions ~/Library/Preferences/RubyMine70
vim ~/Library/Preferences/RubyMine70/rubymine.vmoptions
cp /Applications/WebStorm.app/Contents/bin/webstorm.vmoptions ~/Library/Preferences/WebStorm10
vim ~/Library/Preferences/WebStorm10/webstorm.vmoptions