You can use the Acrolinx Desktop Checker to check content from editors without their own integration. Here, we'll run through how to check content in Android Studio.
Before you can run a check, you'll need to add the Desktop Checker to Android Studio. The best way to do this is to add it as an external tool.
To add the Desktop Checker to Android Studio, do the following:
-
In Android Studio, go to File > Settings.
-
Navigate to Tools and expand it.
-
Click External Tools to open the Settings section.
-
In the Settings section, click the Add button in the top-left corner of the page to open the Edit Tool window.
-
Enter the following settings in the corresponding sections in the Edit Tool window:
Name: Acrolinx Desktop Checker Program: PATH_TO_DESKTOP_CHECKER (for example, /user/local/bin/acrolinxdesktopchecker) Arguments: -f $FilePath$ --check Advanced Options: Uncheck “Open console for tool output”
-
Click OK.
-
Navigate to Tools > External Tools to confirm that you can see the Desktop Checker listed.
Tip
Did you know that you can follow these steps to add the Acrolinx Desktop Checker to any Eclipse-based editor?
Now that you've added the Desktop Checker to Android Studio as an external tool, let's try it out.
To run a check with the Desktop Checker in Android Studio, do the following:
-
In Android Studio, navigate to Tools and expand it.
-
Click External Tools > Acrolinx Desktop Checker to open the Sidebar.
Tip
You can also access External Tools via right click in Source mode.
-
When the Sidebar opens, sign in and run a check.
-
After you’ve reviewed your content, click File > Save in the Desktop Checker window.
-
Android Studio will automatically reload your content with the saved changes.