Sublime Forum

Run PowerShell code for just the current line

#1

How do I only build the current line when working with PowerShell?

Let say I have this code:

Write-Host 'Do not want to run this line.'
Write-Host 'I want to run this line.'

How do I place the caret on this line and run it?

Write-Host 'I want to run this line.'
0 Likes

#2

Build Parts. Select what you want to build and Ctrl+B.

0 Likes