Skip to content

Commit

Permalink
Add .editorconfig file for Rust indentation
Browse files Browse the repository at this point in the history
While most editors use the standard 4-space indentation for Rust code,
this project uses two spaces.  To make it easier to write code according
to the project style, this patch adds an .editorconfig file that
specifies the indentation rules.
  • Loading branch information
robinkrahl authored and d-e-s-o committed Apr 10, 2021
1 parent cf02dbd commit ecace8d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# .editorconfig

# Copyright (C) 2021 The Nitrocli Developers
# SPDX-License-Identifier: GPL-3.0-or-later

[*.rs]
indent_size = 2

0 comments on commit ecace8d

Please sign in to comment.