如何停止自动完成HTML和Django模板标签的PyCharm? [英] How to stop PyCharm from autocompleting HTML and Django template tags?

查看:156
本文介绍了如何停止自动完成HTML和Django模板标签的PyCharm?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我用PyCharm编写Django模板时,它会自动关闭它们;当我开始一个新的标签时,这是非常有用的,但是如果我的意图是将一些已经存在的内容放入不同的标签中,它往往会有点烦人,因为我必须删除或移动结束标签,例如,

When I'm writing Django templates with PyCharm it automatically closes them; this is reasonably helpful when I'm starting a new tag, but if my intention is to place some already existing content inside a different tag it tends to get a bit annoying, as I then have to delete or move the closing tag, e.g. I'll end up with something like this.

<div></div>Already existing text.

是否有禁用此功能的方法?

Is there any way of disabling this feature?

推荐答案

您可以修改智能键的功能,可以执行以下操作:

You can modify the smart keys functionality of the Editor by doing the following:


  1. 转到设置 - >编辑器 - >一般 - >智能钥匙

  2. 取消选中XML / HTML部分下的在标记完成时插入结束标记。
  1. Go to Settings --> Editor --> General --> Smart Keys
  2. Uncheck "insert closing tag on tag completion" under the "XML/HTML" section.

这篇关于如何停止自动完成HTML和Django模板标签的PyCharm?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆