Skip to content

Commit

Permalink
Add .editorconfig file (#16795)
Browse files Browse the repository at this point in the history
Summary of the issue:
Following the recent attempts to uniformize code style with linting, it makes sense to add an .editorconfig file, as this is the format that is widely supported by IDEs out of the box.
Visual Studio code insists on sticking to space indentation for new files and sometimes switches from tab to space indentation for Python files. This is fixed with .editorconfig and an editorconfig extension in Visual Studio code.
Description of user facing changes
Added .editorconfig

Description of development approach
.editorconfig file according to NVDA's code style.
  • Loading branch information
LeonarddeR authored Jul 3, 2024
1 parent 9eca851 commit 97a994b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.{cpp,h,py}]
charset = utf-8
indent_style = tab
tab_width = 4
trim_trailing_whitespace = true
max_line_length = 110
2 changes: 2 additions & 0 deletions user_docs/en/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

Please refer to [the developer guide](https://www.nvaccess.org/files/nvda/documentation/developerGuide.html#API) for information on NVDA's API deprecation and removal process.

* Added a `.editorconfig` file to NVDA's repository in order for several IDEs to pick up basic NVDA code style rules by default. (#16795, @LeonarddeR)

#### Deprecations

## 2024.3
Expand Down

0 comments on commit 97a994b

Please sign in to comment.