public interface EditorSettings
Modifier and Type | Method and Description |
---|---|
boolean |
areGutterIconsShown() |
int |
getAdditionalColumnsCount() |
int |
getAdditionalLinesCount() |
int |
getCaretBlinkPeriod() |
int |
getCustomSoftWrapIndent() |
int |
getLineCursorWidth() |
int |
getRightMargin(Project project) |
java.util.List<java.lang.Integer> |
getSoftMargins()
Retrieves a list of soft margins (visual indent guides) to be used in the editor.
|
int |
getTabSize(Project project) |
boolean |
isAdditionalPageAtBottom() |
boolean |
isAllowSingleLogicalLineFolding() |
boolean |
isAllSoftWrapsShown() |
boolean |
isAnimatedScrolling() |
boolean |
isAutoCodeFoldingEnabled() |
boolean |
isBlinkCaret() |
boolean |
isBlockCursor() |
boolean |
isCamelWords() |
boolean |
isCaretInsideTabs() |
boolean |
isCaretRowShown() |
boolean |
isDndEnabled() |
boolean |
isFoldingOutlineShown() |
boolean |
isIndentGuidesShown() |
boolean |
isInnerWhitespaceShown() |
boolean |
isLeadingWhitespaceShown() |
boolean |
isLineMarkerAreaShown() |
boolean |
isLineNumbersShown() |
boolean |
isMouseClickSelectionHonorsCamelWords() |
boolean |
isPreselectRename() |
boolean |
isRefrainFromScrolling() |
boolean |
isRightMarginShown() |
boolean |
isShowIntentionBulb() |
boolean |
isSmartHome() |
boolean |
isTrailingWhitespaceShown() |
boolean |
isUseCustomSoftWrapIndent() |
boolean |
isUseSoftWraps() |
boolean |
isUseTabCharacter(Project project) |
boolean |
isVariableInplaceRenameEnabled() |
boolean |
isVirtualSpace() |
boolean |
isWheelFontChangeEnabled() |
boolean |
isWhitespacesShown() |
boolean |
isWrapWhenTypingReachesRightMargin(Project project) |
void |
resetCamelWords()
Allows to remove 'use camel words' setup specific to the current settings object (if any) and use the shared one.
|
void |
setAdditionalColumnsCount(int additionalColumnsCount) |
void |
setAdditionalLinesCount(int additionalLinesCount) |
void |
setAdditionalPageAtBottom(boolean val) |
void |
setAllowSingleLogicalLineFolding(boolean allow)
By default, gutter mark (for collapsing/expanding the region using mouse) is not shown for a folding region, if it's contained within
a single document line.
|
void |
setAnimatedScrolling(boolean val) |
void |
setAutoCodeFoldingEnabled(boolean val) |
void |
setBlinkCaret(boolean blinkCaret) |
void |
setBlockCursor(boolean blockCursor) |
void |
setCamelWords(boolean val) |
void |
setCaretBlinkPeriod(int blinkPeriod) |
void |
setCaretInsideTabs(boolean allow) |
void |
setCaretRowShown(boolean caretRowShown) |
void |
setCustomSoftWrapIndent(int indent) |
void |
setDndEnabled(boolean val) |
void |
setFoldingOutlineShown(boolean val) |
void |
setGutterIconsShown(boolean gutterIconsShown) |
void |
setIndentGuidesShown(boolean val) |
void |
setInnerWhitespaceShown(boolean val) |
default void |
setLanguage(Language language)
Deprecated.
|
void |
setLanguageSupplier(java.util.function.Supplier<? extends Language> languageSupplier) |
void |
setLeadingWhitespaceShown(boolean val) |
void |
setLineCursorWidth(int width) |
void |
setLineMarkerAreaShown(boolean lineMarkerAreaShown) |
void |
setLineNumbersShown(boolean val) |
void |
setMouseClickSelectionHonorsCamelWords(boolean val) |
void |
setPreselectRename(boolean val) |
void |
setRefrainFromScrolling(boolean b) |
void |
setRightMargin(int myRightMargin) |
void |
setRightMarginShown(boolean val) |
void |
setShowIntentionBulb(boolean show) |
void |
setSmartHome(boolean val) |
void |
setSoftMargins(java.util.List<java.lang.Integer> softMargins)
Explicitly sets soft margins (visual indent guides) to be used in the editor instead of obtaining them from code style settings via
CodeStyleSettings.getSoftMargins() method. |
void |
setTabSize(int tabSize) |
void |
setTrailingWhitespaceShown(boolean val) |
void |
setUseCustomSoftWrapIndent(boolean useCustomSoftWrapIndent) |
void |
setUseSoftWraps(boolean use) |
void |
setUseTabCharacter(boolean useTabCharacter) |
void |
setVariableInplaceRenameEnabled(boolean val) |
void |
setVirtualSpace(boolean allow) |
void |
setWheelFontChangeEnabled(boolean val) |
void |
setWhitespacesShown(boolean val) |
void |
setWrapWhenTypingReachesRightMargin(boolean val) |
boolean isRightMarginShown()
void setRightMarginShown(boolean val)
boolean isWhitespacesShown()
void setWhitespacesShown(boolean val)
boolean isLeadingWhitespaceShown()
void setLeadingWhitespaceShown(boolean val)
boolean isInnerWhitespaceShown()
void setInnerWhitespaceShown(boolean val)
boolean isTrailingWhitespaceShown()
void setTrailingWhitespaceShown(boolean val)
int getRightMargin(Project project)
void setRightMargin(int myRightMargin)
java.util.List<java.lang.Integer> getSoftMargins()
setSoftMargins(List)
method, they are obtained from code style settings: CodeStyleSettings.getSoftMargins()
.void setSoftMargins(java.util.List<java.lang.Integer> softMargins)
CodeStyleSettings.getSoftMargins()
method. It is important to distinguish and empty list from null
value: the first
will define no soft margins for the eidtor while the latter will restore the default behavior of using them from code style settings.softMargins
- A list of soft margins or null
to use margins from code style settings.boolean isWrapWhenTypingReachesRightMargin(Project project)
void setWrapWhenTypingReachesRightMargin(boolean val)
boolean isLineNumbersShown()
void setLineNumbersShown(boolean val)
int getAdditionalLinesCount()
void setAdditionalLinesCount(int additionalLinesCount)
int getAdditionalColumnsCount()
void setAdditionalColumnsCount(int additionalColumnsCount)
boolean isLineMarkerAreaShown()
void setLineMarkerAreaShown(boolean lineMarkerAreaShown)
boolean areGutterIconsShown()
void setGutterIconsShown(boolean gutterIconsShown)
boolean isFoldingOutlineShown()
void setFoldingOutlineShown(boolean val)
boolean isAutoCodeFoldingEnabled()
void setAutoCodeFoldingEnabled(boolean val)
boolean isUseTabCharacter(Project project)
void setUseTabCharacter(boolean useTabCharacter)
int getTabSize(Project project)
void setTabSize(int tabSize)
boolean isSmartHome()
void setSmartHome(boolean val)
boolean isVirtualSpace()
void setVirtualSpace(boolean allow)
boolean isCaretInsideTabs()
void setCaretInsideTabs(boolean allow)
boolean isBlinkCaret()
void setBlinkCaret(boolean blinkCaret)
int getCaretBlinkPeriod()
void setCaretBlinkPeriod(int blinkPeriod)
boolean isBlockCursor()
void setBlockCursor(boolean blockCursor)
boolean isCaretRowShown()
void setCaretRowShown(boolean caretRowShown)
int getLineCursorWidth()
void setLineCursorWidth(int width)
boolean isAnimatedScrolling()
void setAnimatedScrolling(boolean val)
boolean isCamelWords()
void setCamelWords(boolean val)
void resetCamelWords()
boolean isAdditionalPageAtBottom()
void setAdditionalPageAtBottom(boolean val)
boolean isDndEnabled()
void setDndEnabled(boolean val)
boolean isWheelFontChangeEnabled()
void setWheelFontChangeEnabled(boolean val)
boolean isMouseClickSelectionHonorsCamelWords()
void setMouseClickSelectionHonorsCamelWords(boolean val)
boolean isVariableInplaceRenameEnabled()
void setVariableInplaceRenameEnabled(boolean val)
boolean isRefrainFromScrolling()
void setRefrainFromScrolling(boolean b)
boolean isIndentGuidesShown()
void setIndentGuidesShown(boolean val)
boolean isUseSoftWraps()
void setUseSoftWraps(boolean use)
boolean isAllSoftWrapsShown()
boolean isUseCustomSoftWrapIndent()
void setUseCustomSoftWrapIndent(boolean useCustomSoftWrapIndent)
int getCustomSoftWrapIndent()
void setCustomSoftWrapIndent(int indent)
boolean isAllowSingleLogicalLineFolding()
void setAllowSingleLogicalLineFolding(boolean allow)
FoldRegion.setGutterMarkEnabledForSingleLine(boolean)
.boolean isPreselectRename()
void setPreselectRename(boolean val)
boolean isShowIntentionBulb()
void setShowIntentionBulb(boolean show)
@Deprecated default void setLanguage(Language language)
void setLanguageSupplier(java.util.function.Supplier<? extends Language> languageSupplier)