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

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

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

origin: KronicDeth/intellij-elixir

public void testCaptureQualifierDotNameArityWithSpaceAroundMultiplication() {
  assertFormatted(
      "capture_qualifier_dot_name_arity_with_space_around_multiplication.ex",
      () -> {
        temporaryCodeStyleSettings
            .getCommonSettings(ElixirLanguage.INSTANCE)
            .SPACE_AROUND_MULTIPLICATIVE_OPERATORS = true;
      }
  );
}
origin: KronicDeth/intellij-elixir

private CommonCodeStyleSettings commonCodeStyleSettings(@NotNull ASTNode node) {
  return CodeStyleSettingsManager
      .getInstance(node.getPsi().getProject())
      .getCurrentSettings()
      .getCommonSettings(ElixirLanguage.INSTANCE);
}
origin: KronicDeth/intellij-elixir

public void testWithSpaceBeforeComma() {
  myFixture.configureByFile("without_space_before_comma.ex");
  temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_BEFORE_COMMA = true;
  reformatFixture();
  myFixture.checkResultByFile("with_space_before_comma.ex");
}
origin: KronicDeth/intellij-elixir

public void testWithSpaceAroundMultiplicationOperators() {
  myFixture.configureByFile("without_space_around_multiplication_operators.ex");
  temporaryCodeStyleSettings
      .getCommonSettings(ElixirLanguage.INSTANCE)
      .SPACE_AROUND_MULTIPLICATIVE_OPERATORS = true;
  reformatFixture();
  myFixture.checkResultByFile("with_space_around_multiplication_operators.ex");
}
origin: KronicDeth/intellij-elixir

public void testWithSpaceWithinParentheses() {
  myFixture.configureByFile("without_space_within_parentheses.ex");
  temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_WITHIN_PARENTHESES = true;
  reformatFixture();
  myFixture.checkResultByFile("with_space_within_parentheses.ex");
}
origin: KronicDeth/intellij-elixir

public void testWithoutSpaceAfterComma() {
  myFixture.configureByFile("with_space_after_comma.ex");
  temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AFTER_COMMA = false;
  reformatFixture();
  myFixture.checkResultByFile("without_space_after_comma.ex");
}
origin: KronicDeth/intellij-elixir

public void testWithoutSpaceBeforeComma() {
  myFixture.configureByFile("with_space_before_comma.ex");
  temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_BEFORE_COMMA = false;
  reformatFixture();
  myFixture.checkResultByFile("without_space_before_comma.ex");
}
origin: KronicDeth/intellij-elixir

public void testWithSpaceAroundMatchOperator() {
  myFixture.configureByFile("without_space_around_match_operator.ex");
  temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AROUND_ASSIGNMENT_OPERATORS = true;
  reformatFixture();
  myFixture.checkResultByFile("with_space_around_match_operator.ex");
}
origin: KronicDeth/intellij-elixir

public void testWithoutSpaceAroundMultiplicationOperators() {
  myFixture.configureByFile("with_space_around_multiplication_operators.ex");
  temporaryCodeStyleSettings
      .getCommonSettings(ElixirLanguage.INSTANCE)
      .SPACE_AROUND_MULTIPLICATIVE_OPERATORS = false;
  reformatFixture();
  myFixture.checkResultByFile("without_space_around_multiplication_operators.ex");
}
origin: KronicDeth/intellij-elixir

public void testWithSpaceAroundRelationalOperators() {
  myFixture.configureByFile("without_space_around_relational_operators.ex");
  temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AROUND_RELATIONAL_OPERATORS = true;
  reformatFixture();
  myFixture.checkResultByFile("with_space_around_relational_operators.ex");
}
origin: KronicDeth/intellij-elixir

public void testWithSpaceAroundUnaryOperators() {
  myFixture.configureByFile("without_space_around_unary_operators.ex");
  temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AROUND_UNARY_OPERATOR = true;
  reformatFixture();
  myFixture.checkResultByFile("with_space_around_unary_operators.ex");
}
origin: KronicDeth/intellij-elixir

public void testWithoutSpaceWithinBrackets() {
  myFixture.configureByFile("with_space_within_brackets.ex");
  temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_WITHIN_BRACKETS = false;
  reformatFixture();
  myFixture.checkResultByFile("without_space_within_brackets.ex");
}
origin: KronicDeth/intellij-elixir

public void testWithSpaceWithinCurlyBraces() {
  myFixture.configureByFile("without_space_within_curly_braces.ex");
  temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_WITHIN_BRACES = true;
  reformatFixture();
  myFixture.checkResultByFile("with_space_within_curly_braces.ex");
}
origin: KronicDeth/intellij-elixir

public void testWithoutSpaceWithinCurlyBraces() {
  myFixture.configureByFile("with_space_within_curly_braces.ex");
  temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_WITHIN_BRACES = false;
  reformatFixture();
  myFixture.checkResultByFile("without_space_within_curly_braces.ex");
}
origin: KronicDeth/intellij-elixir

public void testWithSpaceAroundStabOperator() {
  myFixture.configureByFile("without_space_around_stab_operator.ex");
  temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AROUND_LAMBDA_ARROW = true;
  reformatFixture();
  myFixture.checkResultByFile("with_space_around_stab_operator.ex");
}
origin: KronicDeth/intellij-elixir

public void testWithoutSpaceAroundStabOperator() {
  myFixture.configureByFile("with_space_around_stab_operator.ex");
  temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AROUND_LAMBDA_ARROW = false;
  reformatFixture();
  myFixture.checkResultByFile("without_space_around_stab_operator.ex");
}
origin: KronicDeth/intellij-elixir

public void testWithoutSpaceAroundUnaryOperators() {
  myFixture.configureByFile("with_space_around_unary_operators.ex");
  temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AROUND_UNARY_OPERATOR = false;
  reformatFixture();
  myFixture.checkResultByFile("without_space_around_unary_operators.ex");
}
origin: KronicDeth/intellij-elixir

public void testWithSpaceAroundAdditionOperators() {
  myFixture.configureByFile("without_space_around_addition_operators.ex");
  temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AROUND_ADDITIVE_OPERATORS = true;
  reformatFixture();
  myFixture.checkResultByFile("with_space_around_addition_operators.ex");
}
origin: KronicDeth/intellij-elixir

public void testWithoutSpaceAroundAdditionOperators() {
  myFixture.configureByFile("with_space_around_addition_operators.ex");
  temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AROUND_ADDITIVE_OPERATORS = false;
  reformatFixture();
  myFixture.checkResultByFile("without_space_around_addition_operators.ex");
}
origin: KronicDeth/intellij-elixir

public void testWithSpaceAroundComparisonOperators() {
  myFixture.configureByFile("without_space_around_comparison_operators.ex");
  temporaryCodeStyleSettings.getCommonSettings(ElixirLanguage.INSTANCE).SPACE_AROUND_EQUALITY_OPERATORS = true;
  reformatFixture();
  myFixture.checkResultByFile("with_space_around_comparison_operators.ex");
}
com.intellij.psi.codeStyleCodeStyleSettingsgetCommonSettings

Popular methods of CodeStyleSettings

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Top Sublime Text plugins
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