ShaderLab の EditorConfig プロパティ: ShaderLab のフォーマットスタイル
タブとインデント
インデントスタイル
プロパティ名:
indent_style, [resharper_]shaderlab_indent_style
使用可能な値:
tab: タブspace: スペース
例:
tab |
|---|
something
@section scripts { sdsds }
something
|
space |
|---|
something
@section scripts { sdsds }
something
|
インデントサイズ
プロパティ名:
indent_size, [resharper_]shaderlab_indent_size
使用可能な値:
整数
例:
値: 0 |
|---|
something
@section scripts { sdsds }
something
|
値: 1 |
|---|
something
@section scripts { sdsds }
something
|
値: 2 |
|---|
something
@section scripts { sdsds }
something
|
タブの幅
プロパティ名:
tab_width, [resharper_]shaderlab_tab_width
使用可能な値:
整数
例:
値: 0 |
|---|
something
@section scripts { sdsds }
something
|
値: 1 |
|---|
something
@section scripts { sdsds }
something
|
値: 2 |
|---|
something
@section scripts { sdsds }
something
|
タブがインデントに使用されているときの整列方法
プロパティ名:
[resharper_]shaderlab_alignment_tab_fill_style, [resharper_]alignment_tab_fill_style
使用可能な値:
use_spaces: スペースを使用する (任意のタブサイズで整列して見える)use_tabs_only: タブのみを使用する (不正確)optimal_fill: 最適な塗りつぶしのためにタブとスペースをミックス
インデントが大きくなりすぎても整列する
プロパティ名:
[resharper_]shaderlab_allow_far_alignment, [resharper_]allow_far_alignment
使用可能な値:
true | false
中括弧ルール
中括弧スタイル
プロパティ名:
[resharper_]shaderlab_brace_style、 [resharper_]shaderlab_brace_style、 [resharper_]brace_style、 [resharper_]brace_style
使用可能な値:
end_of_line: 行末 (K&R スタイル)end_of_line_no_space: 行末 (空白なし)next_line: 次の行に (BSD スタイル)next_line_shifted: 次の行のインデント時に (ホワイトスミススタイル)next_line_shifted_2: 次の行インデント 2 (GNU スタイル)
例:
end_of_line |
|---|
Shader "Unlit/NewUnlitShader" {
Properties {
_MainTex ("Texture", 2D) = "white" {}
}
SubShader {
Tags {
"RenderType"="Opaque"
}
LOD 100
Pass {}
}
}
|
end_of_line_no_space |
|---|
Shader "Unlit/NewUnlitShader"{
Properties{
_MainTex ("Texture", 2D) = "white" {}
}
SubShader{
Tags{
"RenderType"="Opaque"
}
LOD 100
Pass{}
}
}
|
next_line |
|---|
Shader "Unlit/NewUnlitShader"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
}
SubShader
{
Tags
{
"RenderType"="Opaque"
}
LOD 100
Pass {}
}
}
|
next_line_shifted |
|---|
Shader "Unlit/NewUnlitShader"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
}
SubShader
{
Tags
{
"RenderType"="Opaque"
}
LOD 100
Pass {}
}
}
|
next_line_shifted_2 |
|---|
Shader "Unlit/NewUnlitShader"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
}
SubShader
{
Tags
{
"RenderType"="Opaque"
}
LOD 100
Pass {}
}
}
|