custom caret width, see registry: editor.caret.width

This commit is contained in:
Sergey Ignatov
2014-11-10 14:04:09 +01:00
parent 3d87741816
commit 7b14c60171
2 changed files with 7 additions and 2 deletions
@@ -32,6 +32,7 @@ import com.intellij.openapi.editor.ex.EditorEx;
import com.intellij.openapi.editor.ex.EditorSettingsExternalizable;
import com.intellij.openapi.editor.impl.softwrap.SoftWrapAppliancePlaces;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.psi.PsiDocumentManager;
import com.intellij.psi.PsiFile;
import com.intellij.psi.codeStyle.CodeStyleSettingsManager;
@@ -47,7 +48,7 @@ public class SettingsImpl implements EditorSettings {
private SoftWrapAppliancePlaces mySoftWrapAppliancePlace = SoftWrapAppliancePlaces.MAIN_EDITOR;
private int myAdditionalLinesCount = 5;
private int myAdditionalColumnsCount = 3;
private int myLineCursorWidth = 2;
private int myLineCursorWidth = Registry.intValue("editor.caret.width", 2);
private boolean myLineMarkerAreaShown = true;
private boolean myAllowSingleLogicalLineFolding = false;
@@ -478,4 +478,8 @@ ide.transparency.mode.for.windows.description=Allow to add transparency to float
ide.new.welcome.screen=true
enable.recursive.document.changes=false
enable.recursive.document.changes.description=Enables performing document changes in document event listeners (this breaks undo/redo functionality!)
enable.recursive.document.changes.description=Enables performing document changes in document event listeners (this breaks undo/redo functionality!)
editor.caret.width=2
editor.caret.width.description=Caret width
editor.caret.width.restartRequired=true