Tabnine Logo
CodeStyleSettings.getIndentOptions
Code IndexAdd Tabnine to your IDE (free)

How to use
getIndentOptions
method
in
com.intellij.psi.codeStyle.CodeStyleSettings

Best Java code snippets using com.intellij.psi.codeStyle.CodeStyleSettings.getIndentOptions (Showing top 4 results out of 315)

origin: jshiell/checkstyle-idea

  private void setNoTabChar(@NotNull final CodeStyleSettings settings, final FileType fileType) {
    CommonCodeStyleSettings.IndentOptions indentOptions = settings.getIndentOptions(fileType);
    if (indentOptions != null) {
      indentOptions.USE_TAB_CHARACTER = false;
    }
  }
}
origin: KronicDeth/intellij-elixir

private void setTestStyleSettings() {
  CodeStyleSettingsManager settingsManager = CodeStyleSettingsManager.getInstance(getProject());
  com.intellij.psi.codeStyle.CodeStyleSettings codeStyleSettings = settingsManager.getCurrentSettings();
  assertNotNull(codeStyleSettings);
  temporaryCodeStyleSettings = codeStyleSettings.clone();
  com.intellij.psi.codeStyle.CodeStyleSettings.IndentOptions indentOptions =
      temporaryCodeStyleSettings.getIndentOptions(ElixirFileType.INSTANCE);
  assertNotNull(indentOptions);
  settingsManager.setTemporarySettings(temporaryCodeStyleSettings);
}
origin: BashSupport/BashSupport

protected void setSettingsBack() {
  final CodeStyleSettingsManager manager = CodeStyleSettingsManager.getInstance(myFixture.getProject());
  myTempSettings.getIndentOptions(BashFileType.BASH_FILE_TYPE).INDENT_SIZE = 200;
  myTempSettings.getIndentOptions(BashFileType.BASH_FILE_TYPE).CONTINUATION_INDENT_SIZE = 200;
  myTempSettings.getIndentOptions(BashFileType.BASH_FILE_TYPE).TAB_SIZE = 200;
  myTempSettings.CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND = 5;
  manager.dropTemporarySettings();
  myTempSettings = null;
}
origin: BashSupport/BashSupport

protected void setSettings(Project project) {
  Assert.assertNull(myTempSettings);
  CodeStyleSettings settings = CodeStyleSettingsManager.getSettings(project);
  myTempSettings = settings.clone();
  CodeStyleSettings.IndentOptions gr = myTempSettings.getIndentOptions(BashFileType.BASH_FILE_TYPE);
  Assert.assertNotSame(gr, settings.OTHER_INDENT_OPTIONS);
  gr.INDENT_SIZE = 2;
  gr.CONTINUATION_INDENT_SIZE = 4;
  gr.TAB_SIZE = 2;
  myTempSettings.CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND = 3;
  CodeStyleSettingsManager.getInstance(project).setTemporarySettings(myTempSettings);
}
com.intellij.psi.codeStyleCodeStyleSettingsgetIndentOptions

Popular methods of CodeStyleSettings

  • getCommonSettings
  • getCustomSettings
  • clone
  • getIndentSize
  • setRightMargin
  • <init>
  • getIndentOptionsByFile
  • getLineSeparator
  • getTabSize
  • setDefaultRightMargin
  • useTabCharacter
  • useTabCharacter

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now