Sublime Forum

Disable word wrapping in build output with custom build

#1

I have a custom build system and would like to disable word wrapping when I run the build.

I’ve followed this thread but it didn’t work.

Here’s my build for use with PowerShell.

{

  "file_patterns": ["*.ps1"],
  "word_wrap": false,
  "selector": "source.powershell",
  // This runs the PowerShell file with the output to ST console.
  "shell_cmd": "Powershell.exe -ExecutionPolicy Bypass -File \"${file}\""

}

I’ve tried to add "word_wrap": false, but that has no bearing on the build output.

I’ve also tried putting "word_wrap": "false", in my user settings.


Here’s what is output in ST:

image

And the same in PS:

0 Likes

#2

the setting is working for me. Did you make sure to rebuild your project to show the changes on the console output?

0 Likes

#3

Yes, I even restarted ST.

No change, unfortunately.

If you try a command like so what do you see (This wraps the output):

Get-ChildItem -Force -Recurse -LiteralPath "C:\Users\$env:UserName\Desktop"

For a command like that it’s wrapped but it doesn’t wrap this:

Write-Host 'This a longer line than it should, This a longer line than it should, This a longer line than it should, This a longer line than it should, This a longer line than it should, This a longer line than it should, This a longer line than it should, '

0 Likes