How to automatically enter brackets on autocomplete?

人盡茶涼 提交于 2019-12-02 08:06:39

The default Python snippets only supports the print keyword, not the print() function. Since I haven't found another package that does, you're problably best off adding a snippet (Atom > Open Your Snippets) such as:

'.source.python':
  'print()':
    'prefix': 'print-function'
    'body': 'print($1)'

The prefix will trigger the snippet defined in the body, in case prefer to call it differently.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!