PowerShell displaying weird characters after Creators Update - powershell

I've just installed Creators Update on my machine and upon launching PowerShell, instead of having a clean screen, I see this mess:
What could be a potential fix?

From this article,
"The problem with PowerShell showing gibberish is a font problem.
Specifically, the update corrupted rasterized fonts. If PowerShell was
set to display text in the corrupted font, you will see a wall of
gibberish instead."
The fix is pretty simple.
"On the Properties window, go to the Font tab. Here, you can change
which font PowerShell uses. Select any font that isn’t listed under
Rasterized fonts. Close PowerShell for good measure and open it again.
The problem should be resolved."

Related

Change size of whitespace tab arrow character in VS Code

I am currently setting up VS Code on a new computer and want to maintain all the same configuration, addons etc that I had on my previous computer. I was able to copy all of the settings, fonts, themes I like, etc; however for some reason I can't figure out how to change the size of the Tab arrow character for whitespace.
In my old editor, the Tab arrow spanned two spaces, whereas on my new computer, the tab arrow only spans one space.
I've been looking all over, and tried googling any variation of "change tab character size", "modify tab arrow span" etc that I could think of. I seem to remember changing the arrow size at some years ago, which is how I got it in my old editor, but I've totally forgotten, and can't find the setting anywhere, neither searching in the VS Code settings, nor on google like I mentioned; the only things that turn up are for changing tab indent size from 2, to 4 spaces etc.
Here are some screenshots of what I mean, from the new VS Code editor and from the one on my older computer:
Current tab arrow size in VS Code:
Old tab arrows size (what I want in my new editor):
This is driving me crazy, and I'm sure it's a simple setting somewhere that I'm missing. Any help would be appreciated!
Edit: In case it is relevant, I'm using JetBrains Mono as my font, and its the same version of the font as from my old computer as well, I copied it over and installed it on the new PC.
To my shock, the issue resolved itself after rebooting my PC. Once again it would seem that the tried and true "have you tried turning it off and on again" continues to ring true in many cases.
The only explanation I can think of is that perhaps some of the font symbols for whitespace characters weren't fully updated for some reason after installing the JetBrains Mono font, which I had installed earlier the same day, and after rebooting my PC I guess all the characters were fully updated/refreshed, and now the longer arrow is displayed for the tabs; I guess this also means that there is no arrow resizing per se, and the arrow symbol for the tab is simply the font symbol.
In any case, I figured I should write this update as an answer in case something like this happens to anyone else in the future.

Not getting Cascadia Code PL in Powershell

I wanted to get started with posh and oh-my-posh so I installed them according to this article. Microsoft docs. I got the theme but the edges didn't had that arrow(that coolness).
I then downloaded the windows terminal and edited the setting.json there with
"fontFace": "Cascadia Code PL"
So it got the desired result of posh in there.
Now the only problem currently is how to change this in windows powershell. I integrated the powershell in my vs code so there also I was not able to find this theme(or desired result). All I could find is the color but not the arrow and that fancy icons or what the jargon is.
Please help. I want my powershell to have posh.
If I understand correctly, there are two parts to the question.
Changing the PowerShell Window Font
To do this, right-click your PowerShell window and head to "Properties"
There, you can choose the header "Font" and change your font to Cascadia Code PL".
This should fix the problem. If you still experience some weird characters, you might need to install a Nerd Font instead.
Changing the VS Code Terminal Font
To use the font in the VS Code Terminal, head to Settings.
Searching for "integrated terminal font family" should bring up the setting you need to edit. Here, add your font 'Cascadia Code PL' on the very front of the setting and save.
You should now be able to open a terminal and use the PL prompt.

vscode on mac is incorrectly highlighting text around text blocks

It is very annoying to see that background around code is lighter then the rest of the program. When the cursor moves the highlighting moves up and down to full window width. Can you please propose solution how to turn this highlighting off. Same problem is in output of task log, and in file explorer.
I have deleted all the settings and Application data and I have same problem. I have installed vscode on windows and I do not have this problem with same settings.
Unfortunately this is an issue in Chromium. You can work around this by starting VS Code with --disable-gpu from the command line.
Sean
It appears this can be fixed for some users by selecting a different color profile in macOS display settings. Note that you have to change this separately for all monitors that you use.
For me, "Apple RGB" will show these blocks, and switching to "LED Cinema Display" or "iMac" solves the issue.
See also: https://github.com/Microsoft/vscode/issues/12473#issuecomment-269024219

PhpStorm editor encoding issue

I just have updated my PhpStorm to version 2016.1 and I have a really strange issue in editor, as you can see in the screenshot, some characters are screwed up.
When I copy/paste the text it is displayed correctly (the text before the require is "dojo"), I have tried changing the file encoding but without success (the file is UTF-8)
Someone already had this problem ? It is kind of annoying. See below my file encoding.
The problem don't seem to be the font (as suggested in comments) because italic is rendered:
It's not a problem with encoding .. but issue with your font. If you look at the screen -- only italic (or italic+bold) text has such problem.
How to check it:
If you select the text and copy-paste it into another editor (e.g. Notepad++ if you are on Windows) .. or even here into the actual Question -- will it copy that mangled text fine (I mean -- will it read "dojo" when pasted)?
Will it display it fine if you try another standard color schema -- e.g. "Default" or "Darcula"?
The issue can be with actual font (corrupted font files; somehow incomplete font data etc) .. or maybe even the with the way how IDE uses/renders it (e.g. font may not have separate "bold italic" style so IDE tries to mimic it and fails).
Either fix your font (re-download and reinstall; look for newer version maybe)
.. or use another font
.. or do not use italic (bold+italic) style

Can't change PowerShell font and window size on Windows 8.1

My PowerShell window opens with a very small font (and window size). This is a common problem, and I found a bunch of suggestions for how to deal with it, but none of the suggestions seem to work. Specifically, the common suggestion that one should open PowerShell with admin privileges, change the properties, and then close the window, doesn't work. It's still small the next time I open it. The only way I managed to get it to open with the right font and window size, was by opening the application directly. Any invocation via a shortcut doesn't give the right properties.
I'm running Windows 8.1, which seems to be the main difference between my situation and that of the other users who had this problem. Any idea how to fix this?
For Windows 8.1, in Start, find PowerShell.
Open file location. Open shortcut Properties (right click menu). Security tab → Edit your permissions to Modify.
Select Font tab (skip errors - nothing is set hence the problem). Select Font (I set Lucida Sans Size 16).
Apply (changes). Security tab Edit permissions remove modify. Apply. All done.
Is it possible that you are adjusting the Properties rather than the 'Defaults'? Also, I am with Keith; the Consolas fonts give you much large sizes than the Raster, and the Lucida Console give people problems.
I'm on Windows 8.1 and the only thing I ever do is start PowerShell via its shortcut then edit the console properties to my liking. I then launch PowerShell elevated and set the same settings. Usually that has me pretty well covered on Windows 8.1. Of course, if you then launch the x86 console for PowerShell you may need to configure it as well.
I had the same problem. As stated here I select a non-12pt font, and it works. So I choose 14 pt Consolas. And it works. I'm using Windows 7 and Windows Server 2012. Both acts like the same.
Run PowerShell as Administrator, set the default font properties, and close the PowerShell window.
Then run PowerShell as the normal user, and you should see the same font as you did before.