Skip to content

Commit 1cf1473

Browse files
committed
0.5.1
1 parent f7269a9 commit 1cf1473

8 files changed

Lines changed: 242 additions & 22 deletions

File tree

.editorconfig

Lines changed: 199 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,206 @@
1-
[*.cs]
1+
[package.json]
2+
indent_style = space
3+
indent_size = 2
4+
insert_final_newline = false
5+
charset = utf-8
26

7+
[*.cs]
8+
# Indentation and spacing
39
indent_size = 4
410
indent_style = space
511
tab_width = 4
12+
13+
# New line preferences
614
end_of_line = lf
715
insert_final_newline = true
816

17+
#### .NET Coding Conventions ####
18+
19+
# Organize usings
20+
dotnet_separate_import_directive_groups = false
21+
dotnet_sort_system_directives_first = false
22+
file_header_template = unset
23+
24+
# this. and Me. preferences
25+
dotnet_style_qualification_for_event = false:silent
26+
dotnet_style_qualification_for_field = false:silent
27+
dotnet_style_qualification_for_method = false:silent
28+
dotnet_style_qualification_for_property = false:silent
29+
30+
# Language keywords vs BCL types preferences
31+
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
32+
dotnet_style_predefined_type_for_member_access = true:silent
33+
34+
# Parentheses preferences
35+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
36+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
37+
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
38+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
39+
40+
# Modifier preferences
41+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
42+
43+
# Expression-level preferences
44+
dotnet_style_coalesce_expression = true:suggestion
45+
dotnet_style_collection_initializer = true:suggestion
46+
dotnet_style_explicit_tuple_names = true:suggestion
47+
dotnet_style_null_propagation = true:suggestion
48+
dotnet_style_object_initializer = true:suggestion
49+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
50+
dotnet_style_prefer_auto_properties = true:silent
51+
dotnet_style_prefer_compound_assignment = true:suggestion
52+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
53+
dotnet_style_prefer_conditional_expression_over_return = true:silent
54+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
55+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
56+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
57+
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
58+
dotnet_style_prefer_simplified_interpolation = true:suggestion
59+
60+
# Field preferences
61+
dotnet_style_readonly_field = true:suggestion
62+
63+
# Parameter preferences
64+
dotnet_code_quality_unused_parameters = all:suggestion
65+
66+
# Suppression preferences
67+
dotnet_remove_unnecessary_suppression_exclusions = none
68+
69+
#### C# Coding Conventions ####
70+
71+
# var preferences
72+
csharp_style_var_elsewhere = false:silent
73+
csharp_style_var_for_built_in_types = false:silent
74+
csharp_style_var_when_type_is_apparent = false:silent
75+
76+
# Expression-bodied members
77+
csharp_style_expression_bodied_accessors = true:silent
78+
csharp_style_expression_bodied_constructors = false:silent
79+
csharp_style_expression_bodied_indexers = true:silent
80+
csharp_style_expression_bodied_lambdas = true:silent
81+
csharp_style_expression_bodied_local_functions = false:silent
82+
csharp_style_expression_bodied_methods = false:silent
83+
csharp_style_expression_bodied_operators = false:silent
84+
csharp_style_expression_bodied_properties = true:silent
85+
86+
# Pattern matching preferences
87+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
88+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
89+
csharp_style_prefer_not_pattern = true:suggestion
90+
csharp_style_prefer_pattern_matching = true:silent
91+
csharp_style_prefer_switch_expression = true:suggestion
92+
93+
# Null-checking preferences
94+
csharp_style_conditional_delegate_call = true:suggestion
95+
96+
# Modifier preferences
97+
csharp_prefer_static_local_function = true:suggestion
98+
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:silent
99+
100+
# Code-block preferences
101+
csharp_prefer_braces = true:silent
102+
csharp_prefer_simple_using_statement = true:suggestion
103+
104+
# Expression-level preferences
105+
csharp_prefer_simple_default_expression = true:suggestion
106+
csharp_style_deconstructed_variable_declaration = true:suggestion
107+
csharp_style_inlined_variable_declaration = true:suggestion
108+
csharp_style_pattern_local_over_anonymous_function = true:suggestion
109+
csharp_style_prefer_index_operator = true:suggestion
110+
csharp_style_prefer_range_operator = true:suggestion
111+
csharp_style_throw_expression = true:suggestion
112+
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
113+
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
114+
115+
# 'using' directive preferences
116+
csharp_using_directive_placement = inside_namespace:silent
117+
118+
#### C# Formatting Rules ####
119+
120+
# New line preferences
121+
csharp_new_line_before_catch = true
122+
csharp_new_line_before_else = true
123+
csharp_new_line_before_finally = true
124+
csharp_new_line_before_members_in_anonymous_types = true
125+
csharp_new_line_before_members_in_object_initializers = true
126+
csharp_new_line_before_open_brace = all
127+
csharp_new_line_between_query_expression_clauses = true
128+
129+
# Indentation preferences
130+
csharp_indent_block_contents = true
131+
csharp_indent_braces = false
132+
csharp_indent_case_contents = true
133+
csharp_indent_case_contents_when_block = true
134+
csharp_indent_labels = one_less_than_current
135+
csharp_indent_switch_labels = true
136+
137+
# Space preferences
138+
csharp_space_after_cast = false
139+
csharp_space_after_colon_in_inheritance_clause = true
140+
csharp_space_after_comma = true
141+
csharp_space_after_dot = false
142+
csharp_space_after_keywords_in_control_flow_statements = true
143+
csharp_space_after_semicolon_in_for_statement = true
144+
csharp_space_around_binary_operators = before_and_after
145+
csharp_space_around_declaration_statements = false
146+
csharp_space_before_colon_in_inheritance_clause = true
147+
csharp_space_before_comma = false
148+
csharp_space_before_dot = false
149+
csharp_space_before_open_square_brackets = false
150+
csharp_space_before_semicolon_in_for_statement = false
151+
csharp_space_between_empty_square_brackets = false
152+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
153+
csharp_space_between_method_call_name_and_opening_parenthesis = false
154+
csharp_space_between_method_call_parameter_list_parentheses = false
155+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
156+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
157+
csharp_space_between_method_declaration_parameter_list_parentheses = false
158+
csharp_space_between_parentheses = false
159+
csharp_space_between_square_brackets = false
160+
161+
# Wrapping preferences
162+
csharp_preserve_single_line_blocks = true
163+
csharp_preserve_single_line_statements = true
164+
165+
#### Naming styles ####
166+
167+
# Naming rules
168+
169+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
170+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
171+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
172+
173+
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
174+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
175+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
176+
177+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
178+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
179+
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
180+
181+
# Symbol specifications
182+
183+
dotnet_naming_symbols.interface.applicable_kinds = interface
184+
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
185+
dotnet_naming_symbols.interface.required_modifiers =
186+
187+
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
188+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
189+
dotnet_naming_symbols.types.required_modifiers =
190+
191+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
192+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
193+
dotnet_naming_symbols.non_field_members.required_modifiers =
194+
195+
# Naming styles
196+
197+
dotnet_naming_style.pascal_case.required_prefix =
198+
dotnet_naming_style.pascal_case.required_suffix =
199+
dotnet_naming_style.pascal_case.word_separator =
200+
dotnet_naming_style.pascal_case.capitalization = pascal_case
201+
202+
dotnet_naming_style.begins_with_i.required_prefix = I
203+
dotnet_naming_style.begins_with_i.required_suffix =
204+
dotnet_naming_style.begins_with_i.word_separator =
205+
dotnet_naming_style.begins_with_i.capitalization = pascal_case
206+

.github/CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,11 @@ Pull requests are welcome.
66

77
Stick to the defined [EditorConfig](../.editorconfig) rules.
88

9+
# Development environment
10+
11+
1. Open a Unity project – it can be a new one or an existing one.
12+
2. Clone this repository in the `Packages/` directory.
13+
3. Get focus back to Unity, and open the [Package Manager](https://docs.unity3d.com/Manual/upm-ui.html). [Change the scope](https://docs.unity3d.com/Manual/upm-ui-filter.html) to In Project.
14+
4. You should see Easy Editor listed, tagged as `In Development`.
15+
5. In the [project window](https://docs.unity3d.com/Manual/ProjectView.html), navigate to `Packages/Easy Editor`. You can find all this project's files there.
16+

README.md renamed to .github/README.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
# Easy Editor
22

3-
Unity package to automate external code editor integrations:
3+
Unity package to automate external text editor integrations:
44

55
- List compatible installed editors.
66
- Per editor settings.
77
- Project files (re)generation.
88

99
## Installation
1010

11-
1. Install via [git URL](https://docs.unity3d.com/Manual/upm-ui-giturl.html):
11+
Install via [Unity Package Manager](https://docs.unity3d.com/Manual/upm-ui.html). There are several flavours:
12+
13+
1. [git URL](https://docs.unity3d.com/Manual/upm-ui-giturl.html):
1214

1315
```
1416
https://github.com/frarees/easyeditor.git
@@ -20,21 +22,21 @@ Alternatively, you can install a specific version:
2022
https://github.com/frarees/easyeditor.git#v0.5.0
2123
```
2224

23-
2. Install via [local tarball](https://docs.unity3d.com/Manual/upm-ui-tarball.html):
25+
2. [Local tarball](https://docs.unity3d.com/Manual/upm-ui-tarball.html):
2426

2527
Each [release](https://github.com/frarees/easyeditor/releases) includes a tarball named `com.frarees.easyeditor-<version>.tgz`.
2628

27-
3. Install via [local folder](https://docs.unity3d.com/Manual/upm-ui-local.html):
29+
3. [Local folder](https://docs.unity3d.com/Manual/upm-ui-local.html):
2830

29-
Download the repository contents and point Unity to the `package.json` file.
31+
Download the repository contents and point Unity Package Manager to the `package.json` file.
3032

3133
You can download the repository as a compressed file for a specific [tag](https://github.com/frarees/easyeditor/tags).
3234

3335
## Usage
3436

3537
Select your favourite [external script editor](https://docs.unity3d.com/Manual/Preferences.html#External-Tools) in Unity. You will get specific settings per editor. The rest is taken care of.
3638

37-
![Preferences window](Documentation~/prefs.png)
39+
![Preferences window](images/prefs.png)
3840

3941
## Supported editors
4042

@@ -47,9 +49,13 @@ Select your favourite [external script editor](https://docs.unity3d.com/Manual/P
4749

4850
_gVim versions 8.1 and 8.2._
4951

50-
Is there an editor you miss on this list? [Ask for it](https://github.com/frarees/easyeditor/issues/new?assignees=frarees&labels=enhancement&template=feature_request.md&title=) or [contribute](.github/CONTRIBUTING.md) your implementation.
52+
Is there an editor you miss on this list? [Ask for it](https://github.com/frarees/easyeditor/issues/new?assignees=frarees&labels=enhancement&template=feature_request.md&title=) or [contribute](CONTRIBUTING.md) your implementation.
53+
54+
## Limitations
55+
56+
Text editor executables are currently searched in their default installation paths.
5157

5258
## Contributing
5359

54-
See [contributing](.github/CONTRIBUTING.md) and the [code of conduct](.github/CODE_OF_CONDUCT.md).
60+
See [contributing](CONTRIBUTING.md) and the [code of conduct](CODE_OF_CONDUCT.md).
5561

.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.github
2+
.gitignore
3+
.editorconfig
4+

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
# Changelog
22

3+
## [0.5.1] - 2020-10-12
4+
5+
### Added
6+
- Notes on limitations.
7+
- Notes on setting up a development environment.
8+
- `package.json` EditorConfig rules.
9+
- .NET EditorConfig rules.
10+
11+
### Changed
12+
- Don't include the README in the package.
13+
314
## [0.5.0] - 2020-10-06
415

516
### Added
617
- Support for VimR on macOS.
718
- Setting class to define launcher settings.
819
- Unregister Easy Editor before the assembly reloads.
920
- Documentation.
10-
- Package Publishing to GitHub.
1121

1222
### Changed
1323
- Launchers inherit from abstract class (Launcher) instead of interface (ILauncher).
@@ -75,6 +85,8 @@
7585
- Support for MacVim on macOS.
7686
- Support for Sublime Text 3 on macOS.
7787

88+
[Unreleased]: https://github.com/frarees/easyeditor/compare/v0.5.1...HEAD
89+
[0.5.1]: https://github.com/frarees/easyeditor/compare/v0.5.0...v0.5.1
7890
[0.5.0]: https://github.com/frarees/easyeditor/compare/v0.4.3...v0.5.0
7991
[0.4.3]: https://github.com/frarees/easyeditor/compare/v0.4.2...v0.4.3
8092
[0.4.2]: https://github.com/frarees/easyeditor/compare/v0.4.1...v0.4.2

README.md.meta

Lines changed: 0 additions & 7 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "com.frarees.easyeditor",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"displayName": "Easy Editor",
55
"description": "Support external editors with ease.",
66
"unity": "2019.2",
7-
"documentationUrl": "https://github.com/frarees/easyeditor/blob/v0.5.0/README.md",
8-
"changelogUrl": "https://github.com/frarees/easyeditor/blob/v0.5.0/CHANGELOG.md",
9-
"licensesUrl": "https://github.com/frarees/easyeditor/blob/v0.5.0/LICENSE.md",
7+
"documentationUrl": "https://github.com/frarees/easyeditor/tree/v0.5.1",
8+
"changelogUrl": "https://github.com/frarees/easyeditor/blob/v0.5.1/CHANGELOG.md",
9+
"licensesUrl": "https://github.com/frarees/easyeditor/blob/v0.5.1/LICENSE.md",
1010
"keywords": [
1111
"editor"
1212
],
@@ -16,4 +16,3 @@
1616
"url": "https://frarees.github.io"
1717
}
1818
}
19-

0 commit comments

Comments
 (0)