操作源代码

实时模板

https://www.jetbrains.com/help/pycharm/2025.2/using-live-templates.html

小技巧

充分利用该功能提升开发效率

警告

gateway无法同步配置内容,只能自己记录xml配置到这里然后拷贝到pycharm上

<template name="datetime-strftime" value="$var$.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;)" description="datetime转字符串" toReformat="false" toShortenFQNames="true">
<variable name="var" expression="complete()" defaultValue="" alwaysStopAt="true" />
<context>
    <option name="Python" value="true" />
</context>
</template>