sublime text3沒有顯示package control的問題
阿新 • • 發佈:2021-01-21
技術標籤:開發工具
1】檢查設定
Preferences - Settings Default
Preferences - Settings User
檢查以上兩處的ignored_packages配置資訊,去掉Package Control項;
2】其它解決方案
在 Sublime Text 中,點選選單上的 “view --> show control” 或按 "Ctrl + `"快捷鍵,開啟控制檯:
輸入以下程式碼,回車執行:
import urllib.request,os,hashlib; h = pf2297e1a458f27d836c04bb0cbaf282' + ' d0e7a3098092775ccb37ca9d6b2e4b7d'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print(' Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
至此,Package Control 就已經安裝完成了,在命令面板裡可以選擇 Package Control:Install Package 進行外掛安裝了。
如果提示如下,說明是Package Control:Install Package被忽略了,參考檢查設定的解決方法。
DPI scale: 1.25
startup, version: 3083 windows x64 channel: stable
executable: /C/DevProgramFiles/Sublime Text 3/sublime_text.exe
working dir: /C/DevProgramFiles/Sublime Text 3
packages path: /C/Users/Administrator/AppData/Roaming/Sublime Text 3/Packages
state path: /C/Users/Administrator/AppData/Roaming/Sublime Text 3/Local
zip path: /C/DevProgramFiles/Sublime Text 3/Packages
zip path: /C/Users/Administrator/AppData/Roaming/Sublime Text 3/Installed Packages
ignored_packages: ["Package Control", "Vintage"]
pre session restore time: 0.367431
first paint time: 0.458431
startup time: 0.474431
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_file_settings
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.quick_panel
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin 0_package_control_loader.00-package_control
reloading plugin 0_package_control_loader.02-bz2
reloading plugin All Autocomplete.all_views_completions
reloading plugin AutoFileName.autofilename
reloading plugin AutoFileName.getimageinfo
reloading plugin Better CoffeeScript.CoffeeScript
reloading plugin BracketHighlighter.bh_core
reloading plugin BracketHighlighter.bh_logging
reloading plugin BracketHighlighter.bh_plugin
reloading plugin BracketHighlighter.bh_regions
reloading plugin BracketHighlighter.bh_remove
reloading plugin BracketHighlighter.bh_rules
reloading plugin BracketHighlighter.bh_search
reloading plugin BracketHighlighter.bh_swapping
reloading plugin BracketHighlighter.bh_wrapping
reloading plugin ChineseLocalizations.Localization
reloading plugin Coffee2Js.CoffeeToJS
reloading plugin CSS Less(ish).csslessish
reloading plugin CSS3.css3_completions
reloading plugin CSS3.rgb_to_hex
reloading plugin CSS3.validator
reloading plugin Emmet.emmet-plugin
reloading plugin HTMLBeautify.HTMLBeautify
reloading plugin Less2Css.less2css
reloading plugin Less2Css.lesscompiler
reloading plugin List LESS Variables.lessvariables
reloading plugin MarkdownPreview.helper
reloading plugin MarkdownPreview.markdown_settings
reloading plugin MarkdownPreview.markdown_wrapper
reloading plugin MarkdownPreview.MarkdownPreview
reloading plugin My Snippets.MySnippets
reloading plugin OpenInBrowser.openinbrowser
reloading plugin SideBarEnhancements.SideBar
reloading plugin SideBarEnhancements.SideBarAPI
reloading plugin SideBarEnhancements.SideBarDefaultDisable
reloading plugin Autoprefixer.Autoprefixer
reloading plugin Autoprefixer.node_bridge
reloading plugin ConvertToUTF8.ConvertToUTF8
reloading plugin HTML-CSS-JS Prettify.HTMLPrettify
reloading plugin LESS.less_completions
reloading plugin SublimeLinter.commands
reloading plugin SublimeLinter.sublimelinter
plugins loaded
SublimeLinter: debug mode: off
Emmet: No need to update PyV8
Checking for updates:
Sync Enabled: True
Sync Timeout: 60000
Latest Update at: Thu Jan 1 00:00:00 1970
Thread is: Thread-4
Paths: [{'display': '', 'path': ''}]
No snippets found: Context Menu not created.
``