有什么方法可以访问代码片段中的当前作用域(类名或函数名)吗?我正在尝试为super(CurrentClassName, self).get(*args, **kwargs)
写一段代码,但好像我无法用实际的类名取代CurrentClassName
。有谁知道这是怎么做到的吗?Sublime text 2 snippets
0
A
回答
1
对不起,片段主要是为了重用性;你可以像上面说的那样精确地做,但不能插入特定的东西 - 你必须编写自己的插件才能添加这个功能,因为它需要一些东西来选择一些特定的方法来修改和替换它所特有的东西。
0
对于未来的Google,有人提出了这样的插件:
相关问题
- 1. Conciflicting Sublime text 2 packages/plugins/snippets
- 2. Sublime Text 2 Licensing - Sublime Text 2
- 3. Sublime in Sublime Text 2
- 4. 如何使用美元符号/ JQuery和Sublime Text 2 Snippets?
- 5. 如何将Coda 2剪辑转换为Sublime Text snippets?
- 6. Sublime Text 2 - plugin
- 7. Sublime Text 2&PYTHONPATH
- 8. sublime text 2 ruby
- 9. Sublime Text 3'subl'command still linked to Sublime Text 2
- 10. Sublime Text 2代码暗示
- 11. Groovy和Sublime Text 2
- 12. Sublime Text 2服务
- 13. Sublime Text 2和C
- 14. Sublime Text 2 Creating config.rb
- 15. Sublime Text 2和R
- 16. Sublime Text 2 not building
- 17. 在PHPStorm中使用Sublime text 2片段?
- 18. Sublime Text 2 on before modified?
- 19. Sublime Text 2 - BeautifyRuby不工作
- 20. Sublime Text 2 side bar SVN status
- 21. Sublime Text 2:custom PATH and PYTHONPATH
- 22. Sublime Text 2 Snippet returned blank
- 23. xdebug,sublime-text-2和KindariSublimeXdebug
- 24. Sublime Text 2 Lines too far Right
- 25. Sublime Text 2.在Vim shift + [
- 26. sublime text 2 strip换行
- 27. Sublime Text中的Backspace Tab 2
- 28. Sublime Text 2代码片段
- 29. Sublime Text 2和Python Packages
- 30. Sublime Text 2 with MIT Scheme
没有,你必须通过一个插件来做到这一点。 – MattDMo