Sublime Text 3 API : Get all text from a file

前端 未结 1 1780
轻奢々
轻奢々 2020-12-31 08:27


I am trying to create a plugin for sublime text 3.
For now I only get possible to select all text in a window and copy it in another window.
Code :

         


        
相关标签:
1条回答
  • 2020-12-31 09:04

    You can get the contents of the current doc with:

    contents = self.view.substr(sublime.Region(0, self.view.size()))
    
    0 讨论(0)
提交回复
热议问题