Prettier not formatting "keys" in json files in vscode - json

enter image description here
Ive set up the default formatter to be prettier on js, json, and sol files in my "settings.json" file, as well as going into settings and making my default formatter "prettier" for json, html, and js files, but i still am not getting my "keys" showing up in color.
tried disabling and re-enabling my prettier, doubling checking and making sure all my settings are correct

Related

Configure treesitter in pywal.nvim

I am currently using the AlphaTechnology/pywal.nvim plugin in order to generate the colorscheme for my Neovim configuration. The only problem I have with this is that the .html files lack much color and are quite bland. I want to be able to configure AlphaTechnology/pywal.nvim plugin so that I can alter the colors.
I looked into the .local/share/nvim/site/pack/packer/start/pywal/lua/pywal directory on my local desktop. This is basically the lua/pywal directory if you are looking directly on the AlphaTechnology/pywal.nvim github repo. In this directory, there is a config.lua file. This file basically contains all the colors as well as the associated groups. For example, this file contains the information that decides what color strings would be or what color booleans would be. One such property in this file is: -- TSTag = { } which is basically the color that would appear for HTML tags when using treesitter (I always have treesitter enabled). As you can probably tell, this line is commented out. Therefore, I uncommented this line out and set it to a certain color, believing that setting that value would alter the color on the tags in .html files. However, when I look back into my .html files, there is no change.
I feel like I need to make some configurations in the pywal.lua file in my .config, but I am not exactly sure how I could do that (I am not very proficient in Lua and I am just learning along the way as I am configuring my Neovim and getting by).
So, any ideas and help as to how I can edit my colors in AlphaTechnology/pywal.nvim plugin would be appreciated.
Thank you.

Json files losing indentation when using Beautify extension

I have a JSON file that when I save on it using Beautify extension loses its format (indentation).
I use VS code editor.
If I disable Beautify, it works well and the indentation remains. Any suggestions on how to configure this are welcome.
All other files work well and are well indented when using Beautify.
Regards,
Alek
You can configure the beautify settings in the settings.json file.
For settings reference follow this link: https://github.com/HookyQR/VSCodeBeautify/blob/master/Settings.md
You can open the settings.json from the beautify extension page clicking on the settings button.
You can also try to use another extension called Prettier, it works like a charm for me!

Generate customized static swagger documentation

I have a swagger.yaml/.json file with documentation about my API. Now I want to generate static file from it. But I would like to customized it more than change color of Button. E.g. I want to change place where the button is or how big it is. After that I would like to get index.html as one file.
I've found something like redoc-cli or swagger-codegen but non of it helps me with my problem. I can only chose 'theme'. Is there any kind of tools which helps me with this?
HTML tags work in swagger .yaml/.json file, so actually you can create almost any design you want inside swagger file (not only openapi syntax works for designing documentation).
The final visible output depends on the environment and how do you plan to use the swagger file.

Missing theme after switching to from HTML to Freemarker

I am relatively new to freemarker and I am trying to convert a .html file, that displays correctly, to a .ftl file.
The conversion of the main part of the web page went great (all the elements are there), except for the theme (background) of the web page. It doesn't display, but it was in the html.
My theme is just a link that points to a .min.css file.
<link rel="stylesheet" href="../static/themes-dist-4.0.27-theme-gcwu-fegc/theme-gcwu-fegc/css/theme.min.css">
I am trying to understand if you can pass "html to ftl" straight?
Also, can you display a theme in a ftl file?
EDIT:
The answer to this was to put the file into a public directory (ressources/public/themes/*). The compiler picked it up from there.
You might need to understand that FreeMarker template files are executed on the server, and the browser just sees the output as regular HTLM. Thus, you can simply rename a .html to .ftl (or rather to .ftlh), and since it contains no FreeMarker directives, that template simply prints the original HTML as is.
Check on the developer panel (usually opens with F12) of your browser if the CSS file was successfully loaded. The CSS file is (usually) not a FreeMarker template, just a "static" file, so it's unrelated to FreeMarker (though of course it can also be generated by FreeMarker if you need dynamism there).

PhpStorm ignore file

I'm using webpack to compile all my JavaScript to a single bundle.js file. PhpStorm is running very slowly at times because of this.
Is there a way for me to let PhpStorm ignore this file all together?
Right click on the file in the project tool window and select Mark as plain text from the context menu. That should keep PHPStorm from inspecting the file.
You can also do the reverse: if a file is marked as plain text, you can right click and mark it back to its regular type.