Contract Tools User Preferences
You can configure default values of user preferences by modifying PaperSoftwareContractTools.dll.config in Contract Tools’ installation folder (see Installation Folder) before Word loads Contract Tools for the first time (see Configuring LoadBehavior). PaperSoftwareContractTools.dll.config is an XML file that contains default values of user preferences in setting elements like this:
<setting name="PreferenceName" serializeAs="String">
<value>DefaultValue</value>
</setting>
You can use PowerShell to modify setting elements. For example, when Contract Tools is installed for all users on a 64‑bit operating system, you can modify user preferences named PreferenceName1 and PreferenceName2 to have default values of DefaultValue1 and DefaultValue2 with this PowerShell script:
$defaultValuesForPreferenceNames = @{
# Change these to actual preference names and default values, for example:
# EnableAutomatically = 'False'
PreferenceName1 = 'DefaultValue1'
PreferenceName2 = 'DefaultValue2'
}
$installationFolder = "${Env:ProgramFiles(x86)}\Paper Software\Contract Tools"
$absolutePath = "$installationFolder\PaperSoftwareContractTools.dll.config"
$xml = New-Object Xml.XmlDocument
$xml.Load($absolutePath)
foreach ($item in $defaultValuesForPreferenceNames.GetEnumerator()) {
$xml.SelectSingleNode("//setting[@name='$($item.Name)']").value = $item.Value
}
$xml.Save($absolutePath)
To configure default values of user preferences after Word has loaded Contract Tools, delete the folder in which Word saves Contract Tools user preferences, and then configure default values as you otherwise would. To delete the folder in which Word saves Contract Tools user preferences, enter in PowerShell:
$preferencesFolder = "$Env:LOCALAPPDATA\Microsoft_Corporation"
Remove-Item "$preferencesFolder\PaperSoftwareContractTool_*" -Recurse
Note: This PowerShell script immediately deletes the folder in which Word saves Contract Tools user preferences. It doesn’t move the folder to the Recycle Bin.
Here are names (in bold) of Contract Tools user preferences that you can configure.
Whether Contract Tools Turns On Automatically
-
EnableAutomatically
Trueto turn on Contract Tools when documents open,Falseotherwise. Default isTrue. See Configuring Contract Tools to Be Turned Off When Documents Open for a PowerShell script that configures this preference.
Contract Tools Pane
-
AlwaysShowPane
Trueto show the Contract Tools pane when documents open,Falseotherwise. Default isTrue. -
PanePosition
Rightto position the Contract Tools pane on the right side of a Word window by default,Leftto position the pane on the left side. Default isRight. -
SwitchPaneViewsUsingButtons
Trueto use buttons to show Contract Tools pane views,Falseto use a pop‑up menu. Default isTrue. -
PaneWidth Default width in pixels of the Contract Tools pane, as an integer between 200 and 500. Default is
350. -
PaneBackgroundColor Comma-separated RGB color of the Contract Tools pane background. Default is
240, 240, 240.
Analysis
-
AnalyzeBeforeSave
Trueto analyze when saving a document,Falseotherwise. Default isTrue. -
AnalyzeOnSync
Trueto analyze when syncing a document to a server,Falseotherwise. Default isTrue. -
SyncAnalysisWithDocument
Trueto sync analysis results with documents while there are unanalyzed changes,Falseotherwise. Default isTrue. -
FindAnalysisBookmark
Trueto automatically set an analysis range (saved as a hidden bookmark) when documents open,Falseotherwise. Default isTrue. -
UpdateAnalysis
Trueto update an analysis after editing text (for example, typing and deleting),Falseotherwise. Default isTrue. -
AnalysisUpdateDelay Time in milliseconds between the last edit and an analysis update, as an integer between 0 and 1000. Default is
250. -
SaveAnalysisSettings
Trueto save analysis settings (including ignored drafting errors) with documents as custom XML data in Word 2010 and later,Falseotherwise. Default isTrue. You can also configure whether Contract Tools saves analysis settings using a Registry value; see Saving Analysis Settings to learn more. -
AnalyzeWhenPaneIsHidden
Trueto analyze a document when saving or syncing to a server while the Contract Tools pane is hidden,Falseotherwise. Default isTrue.
Highlighting and Underlining
-
HighlightDraftingErrors
Trueto highlight drafting errors,Falseotherwise. Default isTrue. -
DraftingErrorHighlightColor Comma-separated ARGB color of drafting error highlighting. Default is
30, 180, 0, 0. -
UnderlineDraftingErrors
Trueto underline drafting errors,Falseotherwise. Default isFalse. -
DraftingErrorUnderlineColor Comma-separated RGB color of drafting error underlining. Default is
180, 0, 0. -
ShowInstancesOfSelectedContent
Trueto show instances of selected content,Falseotherwise. Default isTrue. -
HighlightInstancesOfSelectedContent
Trueto highlight instances of selected content,Falseto underline instances of selected content. Default isTrue. -
HighlightMarkersOfSelectedInlineList
Trueto highlight markers of the selected inline list or proviso list,Falseotherwise. Default isTrue. -
HighlightSelectedMatchedBrackets
Trueto highlight matched parentheses and brackets when selected,Falseotherwise. Default isTrue. -
HighlightingOpacity Opacity of highlighting of items other than drafting errors, as an integer between 0 and 255. Default is
30.
Completion Menu
-
CompletionMenuShowsDefinedTermUses
Trueto show defined terms in the Completion menu,Falseotherwise. Default isTrue. -
CompletionMenuShowsSnippets
Trueto show snippets in the Completion menu,Falseotherwise. Default isTrue. -
RightArrowKeyInsertsCompletions
Trueto insert completions using the Right Arrow key,Falseotherwise. Default isTrue. -
ShowCompletionInstructions
Trueto show instructions for choosing a completion in the Completion menu,Falseotherwise. Default isTrue.
Navigation
-
DoubleClickNavigates
Trueto make double-clicking defined terms and cross-references cause navigation,Falseotherwise. Default isTrue. -
ShowLocationWhenScrolling
Trueto show location while dragging the vertical scroller,Falseotherwise. Default isTrue.
Snippets
-
SnippetInsertionKeepsFormatting
Trueto preserve formatting when inserting snippets,Falseotherwise. Default isFalse. -
SnippetsViewWarnsBeforeDeletingSnippets
Trueto show an alert before deleting snippets,Falseotherwise. Default isTrue. -
SnippetsViewShowsCategories
Trueto show building block categories in the Snippets view,Falseotherwise. Default isFalse. -
SnippetsViewShowsAllAutoTextAndQuickParts
Trueto show all AutoText and Quick Parts in the Snippets view,Falseotherwise. Default isFalse. See Sharing Text as Snippets for a PowerShell script that configures this preference. -
SnippetsTemplatePath Path of a Word template (DOTX) file for snippets. If the value of this preference is empty when Contract Tools starts, Contract Tools attempts to use the path of an already-existing file or the path of a newly-created file. Default is empty.
-
SnippetsLoadWhenStarting
Trueto load snippets when Contract Tools starts,Falseotherwise. Default isTrue.
Issues Pop‑Up Menu
-
IssuesIncludeUnusedDefinedTerms
Trueto include unused defined terms in the Issues pop‑up menu,Falseotherwise. Default isTrue. -
IssuesIncludeDefinedTermsUsedOnce
Trueto include defined terms used only once in the Issues pop‑up menu,Falseotherwise. Default isTrue. -
IssuesIncludeToDos
Trueto include to‑dos in the Issues pop‑up menu,Falseotherwise. Default isTrue. -
IssuesIncludeUnknownCrossReferences
Trueto include cross-references to unknown items in the Issues pop‑up menu,Falseotherwise. Default isTrue.
Updating
-
CheckForUpdates
Trueto check for updates when Contract Tools starts,Falseotherwise. Default isTrue. You can also configure whether Contract Tools checks for updates using a Registry value; see Updating Contract Tools to learn more.