I suggest the following workaround, it works for me on PhpStorm 9.0:
- Open the settings page (usually Ctrl + Alt + S), go to plugins → Browse repositories
- Find and install the BackgroundImage plugin
- Restart the IDE, it may display an error, something like "unknown protocol d" - don't worry, go ahead
- Make an image with height = 1px and width = (desired width of the extra margin). Give, say, a white background and draw one rightmost pixel to say black. I took a screenshot of the editor and trimmed it to PS to avoid annoying searching and adjusting the image width. For each background image change, restart PhpStorm.
- Open settings again, go to Other settings → BackgroundImage
- Check the "Enabled" box, view the created image and select the "FileSystem" switch
- Restart the IDE again and change the field and you will get two fields
The image is left-aligned, therefore, when the editor is resized along the X axis (moving the separator between the editor and the project view or file system view, etc.), the margin will remain true. Some side effects - this also appears in the console window, the event log, possibly elsewhere.
If the plugin does not work, check out this page (it says that most JetBrains plugins should work on all IntelliJ platform products, and some workarounds if they do not): http://www.jetbrains.org/intellij/ sdk / docs / basics / getting_started / plugin_compatibility.html
ADDED: Does not work with editor scaling (Ctrl + MouseWheel) - the image scale (fake margin) remains unchanged and the field becomes implausible.
source share