当前位置:网站首页>Make the text template in pycharm project support jinjia2 syntax
Make the text template in pycharm project support jinjia2 syntax
2022-06-22 16:10:00 【The evening breeze brushed the willow face】
File explorer finds the root directory of the project .idea In the folder Project name .iml file ( Hidden files )
use notepad++ Edit this iml file , stay component Sibling of label , Add the following code :
<component name="TemplatesService">
<option name="TEMPLATE_CONFIGURATION" value="Jinja2" />
<option name="TEMPLATE_FOLDERS">
<list>
<option value="$MODULE_DIR$/templates" />
</list>
</option>
</component>And then restart pycharm, Find out Jianji2 The syntax code highlights , It's a success

This method is equivalent to in pycharm Set the internal visual configuration

Here is another problem , These three default template files cannot be deleted
If you just want to html use jinjia2 engine , however xml What can I do without this engine ?
The answer is to xml The directory where the file is located is marked as exclude

After the mark is excluded, the folder display effect is orange , In this way, the documents inside will not adopt jinjia2 The grammar , For example, the shortcut key annotation will not be {# #} In form
In this way, the system can be loaded normally xml
2021-06-28 Add
Do not mark as excluded , Marking as a resource root is the best , It can ensure that there will not be jinjia2 grammar , It can also ensure that the global search can find
边栏推荐
- nvarchar和varchar的区别
- Maze problem (BFS record path)
- 畅享高性能计算!天翼云HPC解决方案来了
- [Shanda conference] peer connection based on webrtc
- How to open a futures account? Is it safe to open an online futures account?
- [Shangshui Shuo series] day three - VIDEO
- Pymssql Module User Guide
- Cross border integration, creativity and innovation to help improve the influence of cultural tourism night tour
- 【山大会议】项目引入 Redux
- Discourse 新用户可插入媒体的数量
猜你喜欢

【一起上水硕系列】Day Three - video

"Software defines the world, open source builds the future" 2022 open atom global open source summit will open at the end of July
![[Shangshui Shuo series] day three - VIDEO](/img/42/0911fee2a36f6dda345a571a31acd5.png)
[Shangshui Shuo series] day three - VIDEO

vector的模拟实现

Discover the number of media new users can insert

Alibaba cloud middleware's open source past

odoo系统对原有模型单独开发的视图设置优先级

How to embody the value of knowledge management in business
![[Shanda conference] application setting module](/img/1e/1665234715b365614a753355274ced.png)
[Shanda conference] application setting module

Jenkins automatically triggers compilation by checking code submissions
随机推荐
对领域驱动设计DDD理解
Turn to: jackwelch: strategy is to think less and be quick to act
C语言学习-18-makefile文件编写例子以及如何生成、调用动态库
[Shanda conference] application setting module
Rosbag使用命令
知识管理在业务中的价值如何体现
odoo本地文档功能开发记录
数睿数据深度 | 关于软件自主可控,源代码向左,无代码向右
84.(cesium篇)cesium模型在地形上运动
Discourse 的信任级别
推进兼容适配,使能协同发展 GBase 5月适配速递
各位学弟学妹,别再看教材了,时间复杂度看这篇就好了
uni开发微信小程序自定义相机自动检测(人像+身份证)
校企联合在路上!华为云GaussDB又来高校啦
【山大会议】一些基本工具类定义
Binary search (integer binary)
Mysql触发器
[译文] 弥合开源数据库和数据库业务之间的鸿沟
[Huawei cloud to Jian Zhiyuan] the winning list of essay solicitation is released!
【LeetCode】9、回文数