Problem: Shutting down pc resets powerline fonts so they don't appear in VS Code (but they do in Ubuntu terminal) - windows

I managed to get the Powerline fonts working on my Windows 10 pc to use in WSL, particularly in the VS Code terminal window so I can use the Agnoster oh-my-zsh terminal theme. I set it all up and everything works - cool.
BUT when I shutdown my pc and restart it, the font no longer works in VS Code.
However, it does still work in the ubuntu window. See ↓
https://i.imgur.com/SCyDrFM.png -- Sorry, I don't have enough rep to post images :(
I noticed it is not installed in the settings > font window
But it is installed in the control panel fonts window.
Current workaround
I can get the font to work again if I reinstall the font, at which point Windows will prompt me that The font is already installed, do I want to reinstall?. Click yes.
At which point the font will appear in the fonts settings (Add fonts) window.
What is going wrong with the font installation? Reinstalling the font after every boot seems tedious... I suppose I can get a script to automate that on startup but I really want to get to the root cause.
EDIT
So I just found the fix - had to right click on the .ttf file and 🛡️Install for all users.
I don't know why installing it as the local user didn't work but hey ¯\_(ツ)_/¯

I found the answer to my own question...
Have to right click on the .ttf file and 🛡️Install for all users.
It seems that if the font is not listed in the Settings > Personalization > Fonts window, VS Code will not find it. Installing for all users makes the font persist there after reboot.

You can install the Powerline Fonts with the following command:
sudo apt-get install fonts-powerline
And starting VS Code from your WSL prompt with command code .

Related

Starship theme symbols not showing up correct in VSCode terminal

Symbol shows as such in
VSCode terminal when it is supposed to appear like this in the macOS terminal. I have already set the correct terminal font in VSCode.
You can change the terminal font setting for VS Code and use a Nerd Font as suggested in Starship's documentation. To do that either go to the settings and search for Terminal Font and update the value or you can add this to your settings.json.
"terminal.integrated.fontFamily": "'FiraMono Nerd Font Mono'",
You can download the fonts here. Make sure you are writing the correct name. This worked for me in fedora zsh shell. Should work for macOS as well.

code::blocks doesn't save my settings as default

I'm a newbie to code::blocks. I have just installed it on my ubuntu desktop and made some changes to its settings such as change default font size , change caret's color, and some more things in settings -> editor. But when I close code::blocks I see message on a pop-up window the perspective code blocks default has changed do you want to save it?I was not able to save my perspective irrespective of clicking yes in the dialogue box.
I also uninstalled and re-installed it but the problem still persists. I searched all over the internet but can't find solution to my problem. I think I've loosen my mind now. Please someone help me.
It is just a permission issue. Type chmod -R 777 ./.config/codeblocks/ in terminal and you are all set :)

How to make the GUI elements of windows version Neovim appear?

My Neovim on windows 10 installed using chocolatey method guided by the website of Neovim, does not have any GUI element (including tab, menu, or toolbar) after I run nvim-qt.exe. Can any one help me? Now, both the _vimrc and all the Vunle Plugin of my gVim are loaded succeed into my Neovim environment. The screen looks like this,
cool_neovim_screen_but_without_gui_element
You should look up the gui settings options
:h guioptions
In vim/nvim.
I do:
set guioptions=egmrti
In my nvim startup file to remove menu, scrollbars, and a few other things. Against look at the documentation to see what each of those letters set/unset.

Color display issue with oh-my-zsh agnoster theme

I have set up oh-my-zsh on RHEL machine running red-hat and I am using agnoster theme. But there seems to be some problem and on terminal the things are not properly displayed. Below is how it is displayed:
{black}{default} adarshs#adarshs {blue}{black}⮀{black} ~/.oh-my-zsh {yellow}{blue}⮀{black} ⭠ master± {yellow}⮀
It seems to me that there is some issue with the color scheme.
Read the readme! https://gist.github.com/agnoster/3712874
You need to install Powerline fonts.
I was looking for the same customisations myself and realised that you can change the color settings not just by tweaking the themse settings but also from the Terminal 'Preferences'
Mine were the default ones, I did some searching and accidentally caught my attention to these colors. Tweaking a bit of those, worked like a charm for me.
So the prerequisites are:
Have Powerline Fonts installed.
Have selected at least one of those font (on terminal/iTerm either)
If you have installed but not selected one of those fonts, symbols may not work correctly.

android studio prompt code complete color and font doesn't work

both prompt and code complete are not working in android studio.
also color and font are trouble some.
checked configuration is ok.
reinstall doesn't work.
i think it should missing some file or there is some problem in ui component.
BTW,in osx.
====================================
find the answer,i chosed the power save mode,which in file menu.
i don't think power save mode is a goods function.just like the shit.

Resources