CARVIEW |
Select Language
HTTP/2 200
date: Thu, 24 Jul 2025 04:52:43 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"baddfb101e7fc1ec178acde91d6dabc2"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=w7saT1Yw0AAg%2F19RfWSsfEiiT3puTm173oBY8ZSntaA6SG4ss2n2pKhK8i%2B%2B5OPqxt6fh78hmxgjjwQvY79xtOecMEg35RyJmLlHMq8sYOV5dtH0Ptd%2FzBQAt60lh8FZltL%2BLXgk5NERP2bihXjNmtWoJFmDCsrCpKKX%2FpXvaVbshqcJEhHTNADs8QfViRdEst9gKw%2BUqDv98fUzJtt1qrNQdby9rU42ATfGoiMS4R81XmhJ4%2FdyylLI1Uper36NnYsT6LyG0jxGE6VdypmLxw%3D%3D--88WpnMZfQ%2Fpy6e7O--19jHq3nByNV93SAX0dR37Q%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1680704647.1753332763; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 04:52:43 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 04:52:43 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: AEC4:12F48D:1349638:176C874:6881BC1B
Script Integration · Xavalon/XamlStyler Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 143
Script Integration
Dave Grochocki edited this page Apr 11, 2020
·
21 revisions
The power of XAML Styler is also wrapped in a small executable that can be integrated into build scripts, git commit templates, and more. Xstyler.exe is built on top of the same styling engine that powers the Visual Studio plugin, and can be configured by specifying an external configuration.
- Install the XamlStyler.Console as dotnet global tool:
dotnet tool install --global XamlStyler.Console
- Use the command
xstyler
directly in any shell.
- Install XamlStyler.Cosole as dotnet local tool:
dotnet new tool-manifest
dotnet tool install XamlStyler.Console
- In any shell, use the following commands:
dotnet tool restore
dotnet xstyler
./xstyler.exe -f "MainPage.xaml" -c "Config.json"
./xstyler.exe -r -d "C:\Solution\" -c "Config.json"
XAML Styler #.#.#.#
Copyright (c) Xavalon 2016
-f, --file XAML file to process (supports comma-separated list).
-d, --directory Directory to process XAML files in.
-c, --config JSON file containing XAML Styler settings configuration.
-i, --ignore (Default: False) Ignore XAML file type check and process
all files.
-r, --recursive (Default: False) Recursively process specified directory.
-p, --passive (Default: False) Check files follow proper formatting without
making any modifications.
-l, --loglevel (Default: Default) Levels in order of increasing detail:
None, Minimal, Default, Verbose, Debug
--help Display this help screen.
Note: xstyler.exe cannot detect Visual Studio indentation options (see Indent Size and Indent with Tabs for more information).
- Batch File - Batch process XAML files in your projects.
- Git Bash - Running xstyler.exe from Git Bash.
- Git Hook - Integrate with your commit process to ensure XAML files are formatted before getting checked in.
Have a useful recipe? Let us know, and we will add it to the Wiki for others to use in their projects.
Clone this wiki locally
You can’t perform that action at this time.