pycharmhtml自动补全
时间: 2023-10-18 16:59:47 浏览: 179
你可以通过设置Pycharm的Live Templates来实现在HTML文件中使用自动补全功能。首先,打开Pycharm的Settings,然后选择Editor->Live Templates。点击右侧的添加按钮,选择Live Template来添加标签。在Abbreviation处输入标签,比如if,在Description处写下该标签的描述。在Template text中输入补全的文本,使用$END$表示光标的位置。选择该标签应用到HTML文件上,然后点击Apply保存设置。这样,在HTML文件中输入if,按下TAB键就可以自动补全了。你也可以按照相同的方法添加其他标签,比如{% for %}等等。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Pycharm设置Django模板文件自动补全代码或标签](https://blog.csdn.net/CH_CHINA/article/details/81048602)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Pycharm设置HTML文件自动补全代码或标签](https://blog.csdn.net/qq_35556064/article/details/80333083)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文