Configure Acrolinx for Visual Studio Code.
You need to set a CORS value for Visual Studio Code. The value depends on your version of Visual Studio Code, for Visual Studio Code versions 1.47 and above use:
cors.allowedOrigins=vscode-webview://*
You can install Acrolinx for Visual Studio Code using the following command:
code --install-extension acrolinx.vscode-sidebar
As an administrator, you can preset the Acrolinx URL that your writers use to connect to Acrolinx. Writers can always manually change their Acrolinx URL by signing out of the Sidebar and signing in again. How you preset the Acrolinx URL depends on whether a computer has Acrolinx Storage or not.
If a Computer Already Has Acrolinx Storage
If you've previously installed Acrolinx for Visual Studio Code or some other Acrolinx Integration on a computer, then it will probably already have an Acrolinx Storage file. You can check whether a computer has Acrolinx Storage under the following path, depending on your operating system:
-
Windows:
%AppData%\Acrolinx\Storage
-
Mac:
$HOME/Library/Application Support/Acrolinx/Storage
-
Linux:
$HOME/.config/Acrolinx/Storage
If a computer already has Acrolinx Storage, follow these steps to preset the Acrolinx URL:
-
Open the
acrolinxStorage.json JSON
file in your Acrolinx Storage folder. -
Add or edit the following property:
acrolinx.serverSelector.serverAddress=<ACROLINX_URL>
If a Computer Doesn't Have Acrolinx Storage
f a computer doesn't already have Acrolinx Storage, you can set the Acrolinx URL before installation using the Visual Studio Codeuser setting acrolinx.serverAddress
. VS Code stores its user settings as a .json file. The Visual Studio Code documentationhas more detailed information about these files. If you want every user to use the same settings, you can create the user setting file once and copy it to all other computers.
Warning
When Acrolinx for Visual Studio Code initializes for the first time, it creates the acrolinxStorage.json
file in Acrolinx Storage. This file overrides the user setting acrolinx.serverAddress
, making it obsolete.