A sublime plugin for formatting java code files with google-java-format
Currently, it is only supported in OSX and Linux(Ubuntu).
Currently, it is only supported in Sublime Text 2. However, it may run successfully for Sublime Text 3 as well.
- Open Sublime.
- Go to "Preferences -> Browse Packages".
- This would open a Finder with the package path. For me, it opens up this path: "/Users/ankitshubham/Library/Application Support/Sublime Text 2/Packages/".
- Clone the repo or download and extract the archive file at this location. After performing this step, I have google-java-format-sublime at the path "/Users/ankitshubham/Library/Application Support/Sublime Text 2/Packages/google-java-format-sublime".
- Its done.
- Open Sublime.
- Go to "Preferences -> Browse Packages".
- This would open a Nautilus with the package path. For me, it opens up this path: "/home/ankit/.config/sublime-text-3/Packages/".
- Clone the repo or download and extract the archive file at this location. After performing this step, I have google-java-format-sublime at the path "/home/ankit/.config/sublime-text-3/Packages/google-java-format-sublime".
- Its done.
Control+Shift+g
Ctrl+Shift+g