Pycharm breaks file templates on creation
Hi, I've created a file template that includes several sub-template children for when I'm creating a website. It used to work fine last time I started a project a couple of weeks ago, but now I'm having issues.
I haven't changed the template at all, I'm guessing was caused by some program update. When creating these files, for some reason the SCSS files get messed up.
Here is how one of the SCSS templates looks:
/*| Created by ${USER} on ${DAY_NAME_FULL} ${DATE} |*/
@use "./abstracts" as a;
/* Top-bar height variable */
$dsk-bar-height: 4rem;
/* Space variable to separate bar and body */
$top-margin: 0rem;
/*--------------| ROOT STYLES |---------------*/
body {
font-size: a.$type-base-size;
line-height: 1.2;
margin-top: $dsk-bar-height+$top-margin;
}
p, li, h1, h2, h3, h4 {
/* Optional, not supported for all languages */
hyphens: auto;
/* Prevent overflow of long words/names/URLs */
overflow-wrap: break-word;
}
/*-----------------| HEADER |-----------------*/
/*------------------| NAV |-------------------*/
:target {
display: block;
position: relative;
top: -$dsk-bar-height+$top-margin;
visibility: hidden;
}
And here how it shows on Pycharm after creating it:
/*| Created by GioFar on Monday 25/04/2022 |*/
@use "./abstracts" as a;
/* Top-bar height variable */
: 4rem;
/* Space variable to separate bar and body */
: 0rem;
/*--------------| ROOT STYLES |---------------*/
body {
font-size: a.;
line-height: 1.2;
margin-top: +;
}
p, li, h1, h2, h3, h4 {
/* Optional, not supported for all languages */
hyphens: auto;
/* Prevent overflow of long words/names/URLs */
overflow-wrap: break-word;
}
/*-----------------| HEADER |-----------------*/
/*------------------| NAV |-------------------*/
:target {
display: block;
position: relative;
top: -+;
visibility: hidden;
}
I don't know what to do anymore, I don't get it, was working fine not long ago, any idea why? It seems like it's removing part of the variable for some reasons.
Please sign in to leave a comment.
Found the solution to my problem, need to wrap my variable inside #[[$myVariable]]# on the template, and they won't break anymore.