浏览代码

format_editorConfig

/main
xingwei.zhu 6 年前
当前提交
b2103118
共有 2 个文件被更改,包括 76 次插入0 次删除
  1. 72
      .editorconfig
  2. 4
      UIWidgetCleanupPlugin.DotSettings

72
.editorconfig


##########################################
#### ####
#### EditorConfig for JetBrains Rider ####
#### ####
#### by Project UIWidget ####
#### ####
##########################################
################# How to #################
#
# (1) Code Cleanup
#
# Prepare: Preferences -> Manage Layers ->
# add a layer from UIWidgetCleanupPlugin.
# DotSettings to your personal layer
#
# Whenever want to clean-up, use
# Menu -> Code -> Code Cleanup -> UIWidget
# -> OK
#
#
# (2) Code Inspect
# Preferences -> Editor -> Inspection
# Settings -> select "Read settings from
# editorconfig..."
#
############################################
#### !!!! EditorConfig Starts Here !!!! #####
root = true
# For CSharp Only
[*.cs]
################
# Code Cleanup #
################
# indents (4 spaces)
indent_style=space
indent_size=4
# no requirement for converting type declaration to var
csharp_for_built_in_types=can_use_either
csharp_for_other_types=can_use_either
csharp_for_simple_types=can_use_either
# use this.{} for all instance members
csharp_instance_members_qualify_members=all
# all braces start at the end of a line
csharp_brace_style=end_of_line
# don't use 'private' whenever possible
csharp_default_private_modifier=implicit
# not requirement for converting named arguments into positioned arguments whenever possible
csharp_arguments_named=named
###################
# CODE INSPECTION #
###################
# use this.{} for all instance members
resharper_arrange_this_qualifier_highlighting=error

4
UIWidgetCleanupPlugin.DotSettings


<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/CodeStyle/CodeCleanup/Profiles/=UIWidget/@EntryIndexedValue">&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;Profile name="UIWidget"&gt;&lt;JsReformatCode&gt;True&lt;/JsReformatCode&gt;&lt;HtmlReformatCode&gt;True&lt;/HtmlReformatCode&gt;&lt;XMLReformatCode&gt;True&lt;/XMLReformatCode&gt;&lt;CSCodeStyleAttributes ArrangeTypeAccessModifier="True" ArrangeTypeMemberAccessModifier="True" SortModifiers="True" RemoveRedundantParentheses="False" AddMissingParentheses="True" ArrangeBraces="True" ArrangeAttributes="True" ArrangeArgumentsStyle="False" ArrangeCodeBodyStyle="True" ArrangeVarStyle="False" /&gt;&lt;CssReformatCode&gt;True&lt;/CssReformatCode&gt;&lt;VBReformatCode&gt;True&lt;/VBReformatCode&gt;&lt;CSOptimizeUsings&gt;&lt;OptimizeUsings&gt;True&lt;/OptimizeUsings&gt;&lt;EmbraceInRegion&gt;False&lt;/EmbraceInRegion&gt;&lt;RegionName&gt;&lt;/RegionName&gt;&lt;/CSOptimizeUsings&gt;&lt;CSReformatCode&gt;True&lt;/CSReformatCode&gt;&lt;CSUpdateFileHeader&gt;True&lt;/CSUpdateFileHeader&gt;&lt;RemoveCodeRedundancies&gt;True&lt;/RemoveCodeRedundancies&gt;&lt;CSUseAutoProperty&gt;True&lt;/CSUseAutoProperty&gt;&lt;CSMakeFieldReadonly&gt;True&lt;/CSMakeFieldReadonly&gt;&lt;CSMakeAutoPropertyGetOnly&gt;True&lt;/CSMakeAutoPropertyGetOnly&gt;&lt;CSFixBuiltinTypeReferences&gt;True&lt;/CSFixBuiltinTypeReferences&gt;&lt;CSArrangeQualifiers&gt;True&lt;/CSArrangeQualifiers&gt;&lt;CSShortenReferences&gt;True&lt;/CSShortenReferences&gt;&lt;IDEA_SETTINGS&gt;&amp;lt;profile version="1.0"&amp;gt;
&amp;lt;option name="myName" value="UIWidget" /&amp;gt;
&amp;lt;/profile&amp;gt;&lt;/IDEA_SETTINGS&gt;&lt;/Profile&gt;</s:String></wpf:ResourceDictionary>
正在加载...
取消
保存