BigFont Blog
  • Home
  • About
  • Bibliography (Work)

automation

A collection of 2 posts

ReSharper Code Inspection from the Command Line
resharper

ReSharper Code Inspection from the Command Line

The unrelated photo is from our new garden bed. This is a follow-up post from ReSharper Code Cleanup from the Command Line. The previous post has details on how to get started. Inspect

  • Shaun Luttin
    Shaun Luttin
1 min read
Powershell: Trim trailing whitespace from all files recursively
powershell

Powershell: Trim trailing whitespace from all files recursively

One Line: ls -r *.cs | % {(gc $_ | % { $_.TrimEnd() }) | sc $_ } Multiple Lines (same command): Get-ChildItem -Recurse *.cs | ForEach-Object { (Get-Content $_ | ForEach-Object { $_.TrimEnd() }) | Set-Content $_ } Note that we're filtering for files with a *.cs extension. To include all

  • Shaun Luttin
    Shaun Luttin
1 min read
BigFont Blog © 2022
Latest Posts Ghost