本文整理汇总了Java中com.intellij.psi.codeStyle.CommonCodeStyleSettings.initIndentOptions方法的典型用法代码示例。如果您正苦于以下问题:Java CommonCodeStyleSettings.initIndentOptions方法的具体用法?Java CommonCodeStyleSettings.initIndentOptions怎么用?Java CommonCodeStyleSettings.initIndentOptions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.psi.codeStyle.CommonCodeStyleSettings
的用法示例。
在下文中一共展示了CommonCodeStyleSettings.initIndentOptions方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getDefaultCommonSettings
import com.intellij.psi.codeStyle.CommonCodeStyleSettings; //导入方法依赖的package包/类
@Override
public CommonCodeStyleSettings getDefaultCommonSettings() {
CommonCodeStyleSettings defaultSettings = new CommonCodeStyleSettings(getLanguage());
CommonCodeStyleSettings.IndentOptions indentOptions = defaultSettings.initIndentOptions();
indentOptions.INDENT_SIZE = 2;
indentOptions.CONTINUATION_INDENT_SIZE = 4;
indentOptions.TAB_SIZE = 2;
return defaultSettings;
}
开发者ID:ant-druha,项目名称:AppleScript-IDEA,代码行数:10,代码来源:AppleScriptLanguageCodeStyleSettingsProvider.java
示例2: getDefaultCommonSettings
import com.intellij.psi.codeStyle.CommonCodeStyleSettings; //导入方法依赖的package包/类
@Override
public CommonCodeStyleSettings getDefaultCommonSettings() {
CommonCodeStyleSettings commonSettings = new CommonCodeStyleSettings(getLanguage());
commonSettings.initIndentOptions();
commonSettings.getIndentOptions().TAB_SIZE = 1;
commonSettings.getIndentOptions().INDENT_SIZE = 1;
commonSettings.getIndentOptions().USE_TAB_CHARACTER = false;
return commonSettings;
}
开发者ID:SeeSharpSoft,项目名称:intellij-csv-validator,代码行数:10,代码来源:CsvLanguageCodeStyleSettingsProvider.java
示例3: getDefaultCommonSettings
import com.intellij.psi.codeStyle.CommonCodeStyleSettings; //导入方法依赖的package包/类
@Nullable
@Override
public CommonCodeStyleSettings getDefaultCommonSettings() {
CommonCodeStyleSettings commonSettings = new CommonCodeStyleSettings(FusionLanguage.INSTANCE);
CommonCodeStyleSettings.IndentOptions indentOptions = commonSettings.initIndentOptions();
indentOptions.INDENT_SIZE = 4;
// strip all blank lines by default
commonSettings.KEEP_BLANK_LINES_IN_CODE = 0;
return commonSettings;
}
示例4: getDefaultCommonSettings
import com.intellij.psi.codeStyle.CommonCodeStyleSettings; //导入方法依赖的package包/类
@Nullable
@Override
public CommonCodeStyleSettings getDefaultCommonSettings() {
CommonCodeStyleSettings settings = new CommonCodeStyleSettings(ProtoLanguage.INSTANCE);
settings.initIndentOptions();
// TODO: we should define our own settings
settings.SPACE_AROUND_ASSIGNMENT_OPERATORS = true;
settings.SPACE_BEFORE_SEMICOLON = false;
settings.BRACE_STYLE = END_OF_LINE;
settings.KEEP_BLANK_LINES_IN_CODE = 2;
settings.KEEP_LINE_BREAKS = false;
return settings;
}
开发者ID:protostuff,项目名称:protobuf-jetbrains-plugin,代码行数:14,代码来源:ProtoLanguageCodeStyleSettingsProvider.java
示例5: getDefaultCommonSettings
import com.intellij.psi.codeStyle.CommonCodeStyleSettings; //导入方法依赖的package包/类
public CommonCodeStyleSettings getDefaultCommonSettings()
{
CommonCodeStyleSettings defaultSettings = new CommonCodeStyleSettings(YamlLanguage.INSTANCE);
IndentOptions indentOptions = defaultSettings.initIndentOptions();
indentOptions.INDENT_SIZE = 2;
indentOptions.TAB_SIZE = 2;
indentOptions.USE_TAB_CHARACTER = false;
indentOptions.SMART_TABS = false;
return defaultSettings;
}
示例6: getDefaultCommonSettings
import com.intellij.psi.codeStyle.CommonCodeStyleSettings; //导入方法依赖的package包/类
@Nullable
@Override
public CommonCodeStyleSettings getDefaultCommonSettings() {
CommonCodeStyleSettings commonSettings = new CommonCodeStyleSettings(JsonLanguage.INSTANCE);
CommonCodeStyleSettings.IndentOptions indentOptions = commonSettings.initIndentOptions();
indentOptions.INDENT_SIZE = 2;
// strip all blank lines by default
commonSettings.KEEP_BLANK_LINES_IN_CODE = 0;
return commonSettings;
}
示例7: getDefaultCommonSettings
import com.intellij.psi.codeStyle.CommonCodeStyleSettings; //导入方法依赖的package包/类
@Override
public CommonCodeStyleSettings getDefaultCommonSettings() {
CommonCodeStyleSettings defaultSettings = new CommonCodeStyleSettings(PythonLanguage.getInstance());
CommonCodeStyleSettings.IndentOptions indentOptions = defaultSettings.initIndentOptions();
indentOptions.INDENT_SIZE = 4;
defaultSettings.ALIGN_MULTILINE_PARAMETERS_IN_CALLS = true;
defaultSettings.KEEP_BLANK_LINES_IN_DECLARATIONS = 1;
defaultSettings.KEEP_BLANK_LINES_IN_CODE = 1;
return defaultSettings;
}
示例8: getDefaultCommonSettings
import com.intellij.psi.codeStyle.CommonCodeStyleSettings; //导入方法依赖的package包/类
@Override
public CommonCodeStyleSettings getDefaultCommonSettings() {
CommonCodeStyleSettings xmlSettings = new CommonCodeStyleSettings(getLanguage());
CommonCodeStyleSettings.IndentOptions indentOptions = xmlSettings.initIndentOptions();
xmlSettings.setForceArrangeMenuAvailable(true);
// HACK [yole]
if (PlatformUtils.isRubyMine()) {
indentOptions.INDENT_SIZE = 2;
}
return xmlSettings;
}
示例9: getDefaultCommonSettings
import com.intellij.psi.codeStyle.CommonCodeStyleSettings; //导入方法依赖的package包/类
@Override
public CommonCodeStyleSettings getDefaultCommonSettings() {
CommonCodeStyleSettings defaultSettings = new CommonCodeStyleSettings(GroovyLanguage.INSTANCE);
defaultSettings.initIndentOptions();
defaultSettings.SPACE_WITHIN_BRACES = true;
defaultSettings.KEEP_SIMPLE_CLASSES_IN_ONE_LINE = true;
defaultSettings.KEEP_SIMPLE_METHODS_IN_ONE_LINE = true;
return defaultSettings;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:GroovyLanguageCodeStyleSettingsProvider.java
示例10: getDefaultCommonSettings
import com.intellij.psi.codeStyle.CommonCodeStyleSettings; //导入方法依赖的package包/类
@Nullable
@Override
public CommonCodeStyleSettings getDefaultCommonSettings() {
CommonCodeStyleSettings defaultSettings =
new CommonCodeStyleSettings(ProjectViewLanguage.INSTANCE);
defaultSettings.LINE_COMMENT_AT_FIRST_COLUMN = false;
defaultSettings.LINE_COMMENT_ADD_SPACE = true;
CommonCodeStyleSettings.IndentOptions indentOptions = defaultSettings.initIndentOptions();
indentOptions.TAB_SIZE = 2;
indentOptions.INDENT_SIZE = 2;
indentOptions.CONTINUATION_INDENT_SIZE = 2;
return defaultSettings;
}
示例11: getDefaultCommonSettings
import com.intellij.psi.codeStyle.CommonCodeStyleSettings; //导入方法依赖的package包/类
@Nullable
@Override
public CommonCodeStyleSettings getDefaultCommonSettings() {
CommonCodeStyleSettings defaultSettings =
new CommonCodeStyleSettings(BuildFileLanguage.INSTANCE);
CommonCodeStyleSettings.IndentOptions indentOptions = defaultSettings.initIndentOptions();
indentOptions.TAB_SIZE = 2;
indentOptions.INDENT_SIZE = 2;
indentOptions.CONTINUATION_INDENT_SIZE = 4;
return defaultSettings;
}
示例12: getDefaultCommonSettings
import com.intellij.psi.codeStyle.CommonCodeStyleSettings; //导入方法依赖的package包/类
@Nullable
@Override
public CommonCodeStyleSettings getDefaultCommonSettings() {
CommonCodeStyleSettings defaultSettings = new CommonCodeStyleSettings(getLanguage());
CommonCodeStyleSettings.IndentOptions indentOptions = defaultSettings.initIndentOptions();
indentOptions.TAB_SIZE = 2;
indentOptions.INDENT_SIZE = 2;
indentOptions.CONTINUATION_INDENT_SIZE = 4;
indentOptions.USE_TAB_CHARACTER = false;
return defaultSettings;
}
示例13: getDefaultCommonSettings
import com.intellij.psi.codeStyle.CommonCodeStyleSettings; //导入方法依赖的package包/类
@Override
public CommonCodeStyleSettings getDefaultCommonSettings() {
CommonCodeStyleSettings settings = new CommonCodeStyleSettings(LuaFileType.LUA_LANGUAGE);
settings.initIndentOptions();
return settings;
}
示例14: getDefaultCommonSettings
import com.intellij.psi.codeStyle.CommonCodeStyleSettings; //导入方法依赖的package包/类
@Override
public CommonCodeStyleSettings getDefaultCommonSettings() {
CommonCodeStyleSettings defaultSettings = new CommonCodeStyleSettings(HTMLLanguage.INSTANCE);
defaultSettings.initIndentOptions();
return defaultSettings;
}