File tree 2 files changed +23
-1
lines changed
2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ IntelliJ IDEA code style settings for Square's Java and Android projects.
7
7
Installation
8
8
------------
9
9
10
- * Run the ` install.sh ` script.
10
+ * On Unix, run the ` install.sh ` script. Windows users should use ` install.bat ` instead .
11
11
* Restart IntelliJ if it's running.
12
12
* Open IntelliJ Project Settings -> Code Styles, change the code style for the
13
13
project to the one you want.
Original file line number Diff line number Diff line change
1
+ REM Installs Square's IntelliJ configs into your user configs.
2
+ @ echo off
3
+ echo Installing Square IntelliJ configs...
4
+
5
+ setlocal enableDelayedExpansion
6
+
7
+ for /D %%i in (%userprofile% \.AndroidStudio*) do call :copy_config %%i
8
+ for /D %%i in (%userprofile% \.IdeaIC*) do call :copy_config %%i
9
+ for /D %%i in (%userprofile% \.IntelliJIdea*) do call :copy_config %%i
10
+
11
+ echo .
12
+ echo Restart IntelliJ and/or AndroidStudio, go to preferences, and apply 'Square' or 'SquareAndroid'.
13
+ exit /b
14
+
15
+ REM sub function for copy config files
16
+ :copy_config
17
+ set config_dir = %~1 \config
18
+ echo Installing to !config_dir!
19
+ xcopy /s configs !config_dir!
20
+ echo Done.
21
+ echo .
22
+ exit /b
You can’t perform that action at this time.
0 commit comments