18

I sometimes write long lines of code as I am playing with things in the PowerShell ISE (v4 on Windows 8.1). I find its console window helpful in many ways, but I'm unable to figure out how to make it wrap long lines; it makes me use my mouse when I only want to use the keyboard.

Screenshot

Is there a way to enable automatic line wrapping in the PowerShell ISE? Failing that, can I scroll left/right using the keyboard?

Note: this is a separate question from how to split a command across multiple lines using the backtick (`) operator.

3
  • You might like to try ConEmu. It has automatic line wrapping.
    – dangph
    Jan 31, 2015 at 3:15
  • @dangph Thanks - I may take a look at that. With PSReadLine it will have some form of the intellisense that I like from the ISE. I may also just wait for Windows 10 to see how powershell and the ISE work with their new console.
    – NextInLine
    Jan 31, 2015 at 14:50
  • yeah, PSReadLine is great. One thing in particular that I like about it is the Bash style command history as opposed to the DOS style in the ISE.
    – dangph
    Feb 1, 2015 at 9:05

2 Answers 2

10

Unfortunately, ISE does not have this functionality... which is weird given that PowerShell (Non-ISE) does.

Unfortunately - the Windows 10/PowerShell 5 ISE isn't any better. The only possible solutions are:

  • Tilde/Backtick (`) - which you've already said you know about
  • Use the ISE "Copy" function when building a command in the cmdlet explorer and then paste into a separate console - hardly ideal, but it may work
  • Develop in a third party application such as Notepad++ and test in ISE/PowerShell
  • Work in the non ISE PowerShell command prompt and use tab completion instead of Intellisense.
  • Investiagte some other ISE such as PowerShell Studio (paid) which seems to wrap lines OK according to a colleague of mine

Sorry I can't be of any more help.

1
1

Word wrap is not supported. You may eliminate the need to scroll to the right to see a complete command by changing the Font size. Go to the Tools tab and decrease the font size.

1
  • 1
    As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    Mar 21 at 17:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .