Giter Club home page Giter Club logo

intellij-project-settings's Introduction

IntelliJ/AndroidStudio's code style

IntelliJ IDE project's default settings for my project.

How to install

  • Create new project
  • Quit IntelliJ
  • Do following commands.
cd [IntelliJ Project HOME]
mkdir -p .idea/inspectionProfiles/
curl -L "https://raw.githubusercontent.com/shiraji/intellij-project-settings/master/codeStyleSettings.xml" > .idea/codeStyleSettings.xml
curl -L "https://raw.githubusercontent.com/shiraji/intellij-project-settings/master/codeInsightSettings.xml" > .idea/codeInsightSettings.xml
curl -L "https://raw.githubusercontent.com/shiraji/intellij-project-settings/master/inspectionProfiles/Project_Default.xml" > .idea/inspectionProfiles/Project_Default.xml
curl -L "https://raw.githubusercontent.com/shiraji/intellij-project-settings/master/inspectionProfiles/profiles_settings.xml" > .idea/inspectionProfiles/profiles_settings.xml
curl -L "https://raw.githubusercontent.com/shiraji/intellij-project-settings/master/inspectionProfiles/shiraji.xml" > .idea/inspectionProfiles/shiraji.xml
cat <<EOF >> .gitignore
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
/.idea/dictionaries
.DS_Store
/build
EOF

See Also

https://github.com/cookpad/android-code-style

intellij-project-settings's People

Contributors

shiraji avatar

Watchers

 avatar  avatar

intellij-project-settings's Issues

Delete Hungarian notation for inspection

Inspection still support Hungarian notation.

diff --git a/.idea/inspectionProfiles/shiraji.xml b/.idea/inspectionProfiles/shiraji.xml
index bfe0c60..ae24871 100644
--- a/.idea/inspectionProfiles/shiraji.xml
+++ b/.idea/inspectionProfiles/shiraji.xml
@@ -57,7 +57,7 @@
       <option name="m_maxLength" value="100" />
     </inspection_tool>
     <inspection_tool class="InstanceVariableNamingConvention" enabled="true" level="ERROR" enabled_by_default="true">
-      <option name="m_regex" value="m[A-Z][A-Za-z\d]*" />
+      <option name="m_regex" value="[a-z][A-Za-z\d]*" />
       <option name="m_minLength" value="0" />
       <option name="m_maxLength" value="100" />
     </inspection_tool>
@@ -171,7 +171,7 @@
     </inspection_tool>
     <inspection_tool class="StaticVariableNamingConvention" enabled="true" level="ERROR" enabled_by_default="true">
       <option name="checkMutableFinals" value="false" />
-      <option name="m_regex" value="s[A-Z][A-Za-z\d]*" />
+      <option name="m_regex" value="[a-z][A-Za-z\d]*" />
       <option name="m_minLength" value="0" />
       <option name="m_maxLength" value="100" />
     </inspection_tool>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.