InlineEdit: make autoindent width (indentUnit) configurable

Allow to configure the indent unit for inline edit mode.
Currently it is not possible to configure it per file-type
(e.g java:2, python:4),
but one can adjust it via the edit preferences.

Change-Id: Ie5167c615f963212f53ec3c87c687dba0f043010
This commit is contained in:
Björn Pedersen
2016-04-13 11:04:24 +02:00
parent 92ba0dd270
commit dc0503895b
7 changed files with 41 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ package com.google.gerrit.extensions.client;
public class EditPreferencesInfo {
public Integer tabSize;
public Integer lineLength;
public Integer indentUnit;
public Integer cursorBlinkRate;
public Boolean hideTopMenu;
public Boolean showTabs;
@@ -33,6 +34,7 @@ public class EditPreferencesInfo {
EditPreferencesInfo i = new EditPreferencesInfo();
i.tabSize = 8;
i.lineLength = 100;
i.indentUnit = 2;
i.cursorBlinkRate = 0;
i.hideTopMenu = false;
i.showTabs = true;