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

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

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

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 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.codeStyleCodeStyleSettingsclone

Popular methods of CodeStyleSettings

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

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Best IntelliJ 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