Skip to content

Differences in how Line Endings are handled in ConsoleHosts

Notifications You must be signed in to change notification settings

gerane/LineEndings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Test Code

'Test1'

Try
{
    'Test1 Pass'
}
catch
{
    'Test1 Fail'
}

'test2'

Try {
    'Test2 Pass'
}
Catch {
    'Test2 Fail'
}

'Test3'

Try {
    'Test3 Pass'
} Catch {
    'Test3 Fail'
}

CRLF CTRL+V in Native ConsoleHost with PSReadline

  • Test1: Pass
  • Test2: Pass
  • Test3: Pass
  • All lines paste as single Code block
  • Requires to execute Code
  • Line breaks are not treated as

Native ConsoleHost with PSReadline

CRLF CTRL+V in VSCode ConsoleHost with PSReadline

  • Test1: Fail
  • Test2: Fail
  • Test3: Pass
  • Every line treated as , which breaks braces on a new line
  • Automatically executes all code

VSCode ConsoleHost with PSReadline

LF CTRL+V in Native ConsoleHost with PSReadline

  • Test1: Pass
  • Test2: Pass
  • Test3: Pass
  • All lines paste as single Code block
  • Requires to execute Code
  • Line breaks are not treated as

Native ConsoleHost with PSReadline

LF CTRL+V in VSCode ConsoleHost with PSReadline

  • Test1: Fail
  • Test2: Fail
  • Test3: Pass
  • Every line treated as which breaks braces on a new line
  • Automatically executes all code

VSCode ConsoleHost with PSReadline

CRLF CTRL+V in Native ConsoleHost without PSReadline

  • Test1: Pass
  • Test2: Pass
  • Test3: Pass
  • Line breaks cause seperate Code blocks, but blocks are not broken.
  • Automatically executes all code
  • Line breaks are treated as

Native ConsoleHost without PSReadline

CRLF CTRL+V in VSCode ConsoleHost without PSReadline

  • Test1: Pass
  • Test2: Pass
  • Test3: Pass
  • Line breaks cause seperate Code blocks, but blocks are not broken.
  • Automatically executes all code
  • Line breaks are treated as

VSCode ConsoleHost without PSReadline

LF CTRL+V in Native ConsoleHost without PSReadline

  • Test1: Fail
  • Test2: Fail
  • Test3: Fail
  • All lines are pasted into a single line
  • Requires to execute Code
  • Line breaks are removed entirely
  • Code breaks due to no new lines

Native ConsoleHost without PSReadline

LF CTRL+V in VSCode ConsoleHost without PSReadline

  • Test1: Pass
  • Test2: Pass
  • Test3: Pass
  • Line breaks cause seperate Code blocks, but blocks are not broken.
  • Automatically executes all code
  • Line breaks are treated as

VSCode ConsoleHost without PSReadline

About

Differences in how Line Endings are handled in ConsoleHosts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published