Can't put an Pipe in the Editor Problem
Answered
I try to type in a Pipe in my Code an it's alway changed to / instead how can i change that?
Please sign in to leave a comment.
See https://youtrack.jetbrains.com/issue/IDEA-216141
Is it your case?
No, I am aktual Working on an Windows 10
I found out that his happen only to certain file types maybe it is because of the intellij-Haskell plugin? as soon as a file is markes as a haskell file all pipes are changed... When I mark the file as plain text i can use pipes
>as soon as a file is markes as a haskell file all pipes are changed...
How are they changed? Is it possible to have a small screencast or a screenshots describing the issue?
To give you more information i tried different keyboard layouts:
German Swiss, English US
IDE Version:
2019.2.3
Filetyp:
.hs
And now when i mark the file as plain text:
So it looks like the character is in fact the same but just displays differently when you enable Haskell plugin? Does code work as expected?
I can run the code it is just a display bug i want to fix
It could be that the plugin either re-define text attributes for this particular language symbol type: you can check it in code style for Haskell: Settings/Preferences | Editor | Code Style or the Color Scheme was customized this way for this type of symbols in language.
Try also changing Editor font in Settings/Preferences | Editor | Font.
In code style i only see this:
I see that even there in the definitions it is displayed wrong:
should be a pipe
@Fabian Brunner when you execute the code - doe it work as expected? What do you see if set any other Editor font?
To verify that this is really a pipe char - open the file in another text editor and check the character and it'c char code.
@... This is still exactly reproducible. I was able to resolve it by changing The Haskell Color Scheme to Dracula under Settings -> Editor -> Color Scheme..Every other theme displays it incorrectly
Which one of the available Haskell support plugins do you use?
The pipe looks like a slash because it is italicized. To fix:
Settings -> Editor -> Color Scheme -> Haskell -> Reserved Symbol. Uncheck Italic. Apply.