question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

get-history | Out-ConsoleGridView with multi-line commands causes issues

See original GitHub issue

Start with:

$someJson = @'
{
   "foo" : true
}
'@

Then

get-history | Out-ConsoleGridView

Results in something ugly like this:

image

Powershell 7.0.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
SteveL-MSFTcommented, Mar 11, 2020

I think following PowerShell syntax, it may make more sense to replace \n with `n. Otherwise, this seems like a good improvement.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to end a multi-line command in PowerShell
It is talking about splitting a command over multiple lines and all the answers are about using a backtick to escape the line...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found