All Projects → GCX-HCI → Grandcentrix Androidcodestyle

GCX-HCI / Grandcentrix Androidcodestyle

Android code style settings for Android Studio at grandcentrix

Programming Languages

java
68154 projects - #9 most used programming language
shell
77523 projects
kotlin
9241 projects

Projects that are alternatives of or similar to Grandcentrix Androidcodestyle

Ascii Tables
Quickly format table in ASCII. Great for code comments, or Github Markdown!
Stars: ✭ 416 (+104.93%)
Mutual labels:  formatting
Node Format Microformat
Formats a Microformat JSON representation into eg. a Jekyll post
Stars: ✭ 11 (-94.58%)
Mutual labels:  formatting
Fmt
A modern formatting library
Stars: ✭ 12,698 (+6155.17%)
Mutual labels:  formatting
Phonenumberkit
A Swift framework for parsing, formatting and validating international phone numbers. Inspired by Google's libphonenumber.
Stars: ✭ 4,362 (+2048.77%)
Mutual labels:  formatting
Intl Tel Input
A JavaScript plugin for entering and validating international telephone numbers
Stars: ✭ 5,963 (+2837.44%)
Mutual labels:  formatting
Vse Formatdocumentonsave
Visual Studio - Format Document on Save
Stars: ✭ 61 (-69.95%)
Mutual labels:  formatting
React Element To Jsx String
Turn a ReactElement into the corresponding JSX string
Stars: ✭ 349 (+71.92%)
Mutual labels:  formatting
Textwrap
An efficient and powerful Rust library for word wrapping text.
Stars: ✭ 164 (-19.21%)
Mutual labels:  formatting
Numbro
A JS library for number formatting
Stars: ✭ 790 (+289.16%)
Mutual labels:  formatting
Editorconfig Netbeans
A NetBeans IDE plugin supporting the EditorConfig standard. ⛺
Stars: ✭ 123 (-39.41%)
Mutual labels:  formatting
Postcss Sorting
PostCSS plugin to keep rules and at-rules content in order.
Stars: ✭ 438 (+115.76%)
Mutual labels:  formatting
Fluent.js
JavaScript implementation of Project Fluent
Stars: ✭ 622 (+206.4%)
Mutual labels:  formatting
Swiftymarkdown
Converts Markdown files and strings into NSAttributedStrings with lots of customisation options.
Stars: ✭ 1,274 (+527.59%)
Mutual labels:  formatting
Better Comments
Stars: ✭ 420 (+106.9%)
Mutual labels:  formatting
Autohooks
Library for managing git hooks
Stars: ✭ 126 (-37.93%)
Mutual labels:  formatting
Markdeep
Official public Markdeep source archive
Stars: ✭ 373 (+83.74%)
Mutual labels:  formatting
Clc
Tiny bash utility for coloring terminal output and prompt
Stars: ✭ 58 (-71.43%)
Mutual labels:  formatting
Cmt
Write consistent git commit messages based on a custom template
Stars: ✭ 179 (-11.82%)
Mutual labels:  formatting
Lint Action
✨ GitHub Action for detecting and auto-fixing lint errors
Stars: ✭ 161 (-20.69%)
Mutual labels:  formatting
Journalize
📰 A collection of JavaScript functions useful for making prose reader friendly.
Stars: ✭ 95 (-53.2%)
Mutual labels:  formatting

Android Code Style

Code formatting rules for Android Studio

Features

Installation on your local machine

Automatically (the easiest way)

Just run the install script. It will automatically copy the latest Code Style to each existing AndroidStudio and AndroidStudioPreview version you have installed.

Manually (the hard way)

  1. Copy the grandcentrix.xml into (MacOS) ~/Library/Preferences/AndroidStudio{VERSION}/codestyles/ or (Linux) ~/.AndroidStudio{VERSION}/config/codestyles/
  2. Restart AndroidStudio
  3. Select the codestyle scheme via Preferences --> Editor --> Code Style.

The codestyle will be enabled/used for all projects that are used with AndroidStudio!

Enabling project specific code styles for a project

If the codestyle is added to the git repository and IntelliJ is configured accordingly each project can have it's own style.

  1. Install the grandcentrix.xml locally (see above)
  2. Restart AndroidStudio
  3. In AndroidStudio, go to Preferences --> Editor --> Code style
  4. Open the scheme list by clicking on the Scheme: drop down
  5. From the Stored in the IDE section select grandcentrix
  6. Click the cogwheel just on the right and select Copy to project
  7. Confirm overwriting project settings with the new scheme

Finally add the code style to the git repository:

git add -f .idea/codestyles/Project.xml .idea/codestyles/codeStyleConfig.xml

Contributing

To contribute just change the code style locally to your needs. Then you can create a PR to this repository.

The PR should always contain:

License

CC0 1.0 Universal

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].