Add codestyle to git
See original GitHub issueSummary:
The codestyle should be a part of the project and require no setup for a new contributor
Steps to reproduce:
Clone the project and go to a file, press ctrl+alt+l
and see the file will be changed.
Would you like to work on the issue?
I think this would be best if somebody with an already correct style configured were to do this.
Just adding this to the .gitignore
should be sufficient
# IDEA/Android Studio Ignore exceptions
!/.idea/inspectionProfiles/
!/.idea/codeStyles/
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
How to share Code Style settings between developers in IntelliJ
Code Style can be copied to project and saved in .idea/codeStyles to be shared via version control: Copy to Project Click this button...
Read more >Creating and highlighting code blocks - GitHub Docs
Share samples of code with fenced code blocks and enabling syntax highlighting.
Read more >Code style schemes | IntelliJ IDEA Documentation - JetBrains
Press Ctrl+Alt+S to open the IDE settings and select Editor | Code Style. · Select the language for which you want to configure...
Read more >Automatic Code Formatting with git | by Harshit Bangar | Medium
While code formatting is critical for styling, spending time on it is futile. ... git add $(echo "$files" | paste -s -d "...
Read more >Documentation Style Guide - GitLab Docs
Code block style is easier to copy and paste in a user's terminal window. To apply code block style, wrap the text in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Contributors, frogmen, mermaids, skeletor, whoever can submit a pr to this repo.
If a file is in git then it can be changed and trying to enshrine it seems like something we should not do. Just treat it like any other file and educate people on IntelliJ/Android Studio functionality.
I have a local branch for the documentation update and am awaiting access to the repo.
@macgills Yeah, he has.
Just for clarification, who do you refer to as “people” here? Contributors?
To clarify, I’m not against keep the code style in Git. I was just wondering if we could avoid such accidental changes while keeping the file Git. 🤔
The closest I could find is https://stackoverflow.com/a/936290/5614968 (the
git update-index --assume-unchange
part). But that’s in the hands of the contributors. Not sure if there are any better ways.Yeah, the wiki has been moved to the documentation repo. So, that would be right place. 🙂