- Notifications
You must be signed in to change notification settings - Fork108
Plugin Guidelines
Jed Mao edited this pageJan 18, 2017 ·1 revision
You've decided to write a new plugin for your favorite editor or contribute to an already-existing plugin, but it's not always clear when or how to apply an EditorConfig setting. Here are some guidelines for each property and how to handle them in the most effective and unobtrusive way.
- When opening/switching to a file, apply built-in editor setting.
- If no built-in editor setting, do nothing. Do not attempt to fix indent style with manual operations.
- When opening/switching to a file, apply built-in editor setting.
- If no built-in editor setting, do nothing. Do not attempt to fix indent size with manual operations.
- When opening/switching to a file, apply built-in editor setting.
- If no built-in editor setting, do nothing. Manual operations do not apply to this property.
- When opening/switching to a file, apply built-in editor setting. In some editors, this will mark the file as dirty.
- If no built-in editor setting, apply built-in editor operation on file save.
- If no built-in editor operation, apply manual operation on file save or do nothing.
- When opening/switching to a file, apply built-in editor setting.
- If no built-in editor setting, apply manual operation on file save or do nothing.
- Do not attempt to fix trailing whitespace when opening/switching to a file.
- Apply built-in editor setting on file save.
- If no built-in editor setting, apply manual operation on file save or do nothing.
- Do not attempt to insert a final new line when opening/switching to a file.
- On file save, apply built-in editor setting.
- If no built-in editor setting, apply manual operation on file save or do nothing.
The wiki is disabled from public edits due to spams. If you would like to request a change in wiki, please open anew discussion.