Identify Sublime Text 3 snippet source

前端 未结 1 1395
故里飘歌
故里飘歌 2021-01-16 02:17

Does anyone know how I can identify where a Sublime Text 3 code snippet is coming from? There\'s one for Rails that I thought was coming from a certain package. I\'ve uninst

相关标签:
1条回答
  • 2021-01-16 02:35

    Press Ctrl + Backtick to open the console, paste the following code, and press Enter.

    sublime.active_window().new_file().run_command( "append", { "characters": "\n".join( sorted( sublime.find_resources( "*.sublime-snippet" ) ) ) } )
    

    A list of all installed snippets will open in a new tab. You can then search for the snippet you want to remove.

    Snippets are shown with their full paths, so you will know which plugin directories they are located in.


    I recommend using PackageResourceViewer to open the snippet and comment out the contents, rather than deleting the snippet file.

    This will effectively remove the snippet from the auto-complete list, maintain the original copy of the snippet within the package, and prevent a plugin update from replacing the deleted snippet file.


    0 讨论(0)
提交回复
热议问题