Skip to content

Commit

Permalink
Merge pull request #9223 from iNavFlight/mmosca-default-synthax-settings
Browse files Browse the repository at this point in the history
Try to set vscode to play nice with formating style
  • Loading branch information
DzikuVx authored Aug 7, 2023
2 parents 4d3420b + bcf8bbb commit da2721b
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
;;; Directory Local Variables -*- no-byte-compile: t -*-
;;; For more information see (info "(emacs) Directory Variables")

((nil . ((c-basic-offset . 4)
(c-default-style . "k&r"))))
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
__pycache__
startup_stm32f10x_md_gcc.s
.vagrant/
.vscode/
#.vscode/
cov-int*
/build/
/obj/
Expand All @@ -31,3 +31,4 @@ README.pdf

# local changes only
make/local.mk
launch.json
9 changes: 9 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
filetype on
filetype indent on

set expandtab
set bs=2
set sw=4
set ts=4


12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"files.associations": {
"chrono": "c",
"cmath": "c",
"ranges": "c"
},
"editor.tabSize": 4,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"editor.expandTabs": true,
"C_Cpp.clang_format_fallbackStyle": "{ BasedOnStyle: Google, IndentWidth: 4, BreakBeforeBraces: Mozilla }"
}

0 comments on commit da2721b

Please sign in to comment.