-
Notifications
You must be signed in to change notification settings - Fork 17
/
.editorconfig
82 lines (73 loc) · 2.45 KB
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#--------------------------------------------------------------------------------
# EditorConfig
# is awesome: https://EditorConfig.org
#
# Maintainer: Philip Ortwein
# Date: 2018-11-25
#
# What is EditorConfig?
# EditorConfig defines spacing, tabs, etc for a project. Project local settings
# are used to define the behavior of the editor. Hence, it is easier to work
# on several projects with different style-guides
#
# Following editors are working out of the box:
#
# * BBEdit, CodeLife, elementaryCode, Builder
# * GitHub, Gogs, IntelliJIDEA
# * KTextEditor (Kate,Kdevelop,...)
# * Komodo, Kakoune, VisualStudio, PyCharm
# * ReSharper, Rider, RubyMine, SourceLair, TortoiseGit, Webstorm
#
# A plugin is required
#
# * ATOM, Brackets, CLion, Code
# * eclipse, Emacs, gedit, vim
# * geany, jEdit, micro, NetBeans, Notepad++, PhpStorm, SublimeText
# * Textadapt, textmate, Visual Studio Code
#
# Install in vim using vbundle
# Add to vbundle settings
# " editorconfig
# Plugin 'editorconfig/editorconfig-vim'
# and do not forget the installation
# :PluginInstall
#--------------------------------------------------------------------------------
#--------------------------------------------------------------------------------
# Settings
#--------------------------------------------------------------------------------
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
# end of line: lf, cr or crlf
end_of_line = lf
insert_final_newline = false
# Matches multiple files with brace expansion notation
# Set default charset
[*.{f90,t90,py,md,cxx,pl}]
charset = utf-8
#--------------------------------------------------------------------------------
# fortran, tf90, c++
#--------------------------------------------------------------------------------
# space indentation
[*.{f90,t90,md,cxx}]
indent_style = space
indent_size = 2
trim_trailing_whitespace = false
max_line_length = 132
#--------------------------------------------------------------------------------
# markdown
#--------------------------------------------------------------------------------
# space indentation
[*.md]
indent_style = space
indent_size = 2
trim_trailing_whitespace = false
#--------------------------------------------------------------------------------
# python, perl
#--------------------------------------------------------------------------------
# space indentation
[*.{pl,py}]
indent_style = space
indent_size = 3
trim_trailing_whitespace = false