Как удалить пакет в sublime text 3

Подготовка Sublime Text 3 к работе
Установка редактора под Windows не вызывает никаких затруднений – просто следуйте указаниям. Можно упомянуть только один нюанс – по ходу установки можно отметить чекбокс, чтобы добавить Sublime Text в контекстное меню операционной системы. Т.е. при клике правой клавишей мыши на каком-либо файле, его можно будет сразу открыть в данном редакторе.
Следующий шаг – установка Package Control. Зачем это нужно? Для полноценной работы потребуется некое количество плагинов и либо мы будем устанавливать их руками, либо за нас эту работу выполнит Package Control. Итак, идём на эту страницу и копируем код для Sublime Text 3. Возвращаемся в редактор и открываем консоль: View > Show Console или просто используем комбинацию клавиш Ctrl +` . Вставляем код в консоль и нажимаем Enter.
Установка и удаление плагинов и тем
Для установки выполняем следующие шаги:
- Открываем Package Control: Preferences > Package Control или Shift + Ctrl + P .
- В появившемся поле вводим install чтобы найти пункт Package Control: Install Package . Выбираем его и нажимаем Enter.
- В поле ввода появившейся панели набираем название нужного плагина, выбираем его в списке и снова Enter.
Чтобы удалить какой-либо из ранее установленных плагинов выполняем те же три действия, только во втором пункте вводим не install, а remove , так как нам нужен Package Control: Remove Package .
Темы устанавливаются так же, как и плагины. При этом добавится 4-й шаг: нужно зайти в Preferences > Settings и далее в Preferences.sublime-settings – User добавить тему. Если конкретнее, то добавить примерно такой код:
Плагины для Sublime Text 3
Кто бы что ни говорил или писал, но для начала не помешает зайти на страничку популярных плагинов и выбрать те, которые подойдут непосредственно Вам. Также я бы порекомендовал перед установкой плагина ознакомиться с его документацией, потому как могут быть нюансы. Ну а ниже перечислю те плагины, которые использую сам:
EditorConfig
Работать приходится с разными проектами и с разными людьми. Дабы определить единый стиль кода и придерживаться его и нужен EditorConfig. Подробнее об этом плагине можно почитать здесь
SideBarEnhancement
Расширяет функционал сайдбара. Надо признать, что у самого Sublime этот функционал уж очень скуден.
SublimeCodeIntel
Довольно удобная штука – позволяет «прыгнуть» в файл и на строку определения класса или метода. И вот об упомянутых выше нюансах – до установки плагина надо убедиться, что CodeIntel установлен в вашей системе, о чём подробнее в документации.
BracketHighlighter
Подсвечивает парные скобки и теги.
PHP Companion
Позволяет добавлять namespace, оператор use и т.д. нажатием одной клавиши. Привязки клавишам нужно писать самому, но можно использовать авторские. Для этого открываем Preferences > Key Bindings , вставляем во вкладку Default.sublime-keymap – User этот код и сохраняем.
DocBlockr
Я противник комментариев как таковых – если понимаешь, что надо написать комментарий к коду, то тут надо не комментарии писать, а код переписывать. Но это не касается комментариев DocBlock, написание которых и упрощает данный плагин.
TrailingSpaces
Подсвечивает пробелы в конце строк и может удалять их при сохранении. По умолчанию опция удаления отключена. Чтобы её включить, надо зайти в Preferences > Package Settings > Trailing Spaces > Settings User и вставить следующее:
A File Icon
В сайдбаре к названиям файлов добавляет иконки. Так воспринимать информацию гораздо удобнее.
Emmet
Незаменимая вещь для вёрстки, значительно ускоряет процесс, позволяя расширять табом аббревиатуры HTML, XML, HAML и CSS/SASS/LESS/Stylus. Если раньше не работали с Emmet, то на первых порах будет полезна вот эта шпаргалка.
Autoprefixer
Ещё один очень полезный инструмент для фронтенда. Не надо больше думать о вендорных префиксах – плагин их вставляет в соответствии с данными caniuse.com. Работает только с препроцессорами CSS, SCSS и требует предустановленного NodeJS. Подробнее здесь. Я добавляю префиксы для двух последних версий браузеров, то бишь мои настройки такие:
Color Highlighter
Полагаю, из названия уже понятно о чём речь. Поставляется вместе с конвертором цветов. Настроек достаточно, поэтому следует почитать доки.
С основными плагинами вроде всё. Что касается конкретных фреймворков или библиотек– тут уж кто с чем работает. Можно лишь сказать, что, как минимум, помимо подсветки желательно также ставить и плагины сниппетов. Лично у меня ещё установлены:
Laravel Blade Highlighter, Blade Snippets, Babel, Babel Snippets, Vue Syntax Highlight, Vuejs Snippets, Sass, LESS, Pug.
Следует упомянуть такие плагины как Git или Laravel Artisan, но им я всё-таки предпочитаю консоль.
О горячих клавишах
Практически полный перечень находится здесь. Я же приведу лишь небольшую выдержку комманд, которые использую чаще всего:
| Ctrl + D | Выделить слово, в котором курсор |
| Ctrl + Shift + M | Выделить содержимое скобок |
| Ctrl + F | Поиск в файле |
| Alt + Enter | Выделить всё найденное (после поиска) |
| Ctrl + / | Закомментировать строку |
| Ctrl + Shift + / | Закомментировать блок кода (в котором находится курсор) |
| Ctrl + S | Сохранить |
| Tab | Добавить отступ |
| Tab + Shift | Удалить отступ |
| Ctrl + Shift + D | Продублировать строку/фрагмент |
| Ctrl + Shift + ↑ | Поднять строку вверх |
| Ctrl + Shift + ↓ | Опустить строку вниз |
| Ctrl + Shift + Enter | Вставить строку выше курсора |
| Ctrl + Enter | Вставить строку ниже курсора |
| Ctrl + P | Переход к файлу в проекте |
И в завершение. Из редактора IDE не слепить, но с другой стороны – а нужно ли? Я пробовал NetBeans, Eclipse, PhpStorm, но в итоге (наряду с последним) всё равно продолжаю пользоваться Sublime. Этот быстрый на подъём и шустрый редактор меня полностью устраивает.
Как удалить / удалить Package Control из Sublime Text 3?
Поиск по uninstall package control в Google показывает только результаты, показывающие, как устанавливать пакеты с помощью Package Control или удалять их, но не удаляет сам Package Control .
Как я могу удалить Package Control из Sublime-Text-3?
4 ответа 4
/Library/Application Support/Sublime Text 3/Installed Packages/Package Control.sublime-package должно сделать это.
(Таким образом, просто измените «Ручную установку», описанную в https://packagecontrol.io/installation)
ОБНОВЛЕНИЕ: Более полные инструкции можно найти в официальных документах (спасибо @ BartaTamás): https://packagecontrol.io/docs/trou устранение неполадок#Purging_Old_Versions
Нажмите Ctrl+Shift+P (или Shift+⌘ +P на Mac) и введите «Удалить». Все пакеты, которые можно удалить, будут показаны в списке ниже. Выберите один и все.
Простые шаги для удаления любого пакета из Sublime как phpfmt, Xdebug и т.д ..
1- Перейдите в Sublime menu-> Preference или нажмите Ctrl+Shift+P. 2- Выберите -> Удалить пакет, после выбора которого будут отображаться все пакеты, установленные в вашем возвышенном, выберите один из них. 3. После выбора он будет удален, или для лучшего вы можете перезагрузить вашу систему.
Другая проблема, если вы используете OS X, это то, что вы, возможно, обновили Xcode, и Apple решила не разрешать вам запускать git потому что вы не приняли лицензионное соглашение. Это если вы используете стандартный Apple-установленный git (обычно в /usr/bin/git ).
Просто запустите git в Терминале и нажмите пробел и введите agree Apple, чтобы это исправить. Когда git работает правильно, Gitgutter снова начнет работать.
Почему git программа, к которой они не имеют никакого отношения , должна быть охвачена обязательным (и до смешного длинным) лицензионным соглашением, я не знаю и, возможно, нарушает лицензию GPLv2 на git . Другой вариант — просто установить свой собственный git .
Being a Sublime Text 3 Doctor
As a JavaScript developer using Bower and NPM on a daily basis, every one of my projects has hundreds if not thousands of files in the bower_components and node_modules folders.
While having this many files in a folder isn’t usually a problem, running a code intel tool on that local project is a problem.
The Culprit
So one day I decided to give the TernJS plugin for Sublime Text 3 a try, which has some awesome code intel features like contextual completions and jumping to function declarations.
The problem was that it froze my Sublime Text to a solid block of ice due to all of the files it tries to analyze. While this isn’t a bug, I just did not know how to ignore folders in my project, so TermJS started scanning everything and Sublime Text came crashing down.
Removing Packages Without Opening Sublime Text
We would normally use the Package Manager tools to remove the package, but since Sublime Text cannot be opened. we need to remove the package by deleting the package folder and changing some settings.
- Deleting the package folder
Browse to your Installed Packages directory:
- Win: C:\Users\
\AppData\Roaming\Sublime Text 2\Installed Packages\ - OSX: /Users/
/Library/Application Support/Sublime Text 2/Installed Packages/ - Linux: /home/
/.config/sublime-text-2/Installed Packages/
Now delete the plugin folder that is causing the errors or freezing Sublime Text. In this case we’ll delete the TernJS package folder.
2. Remove the package from your settings
Browse to your user settings folder:
- Win: C:\Users\
\AppData\Roaming\Sublime Text 2\Packages\User\Package Control.sublime-settings - OSX: /Users/
/Library/Application Support/Sublime Text 2/Packages/User/Package Control.sublime-settings - Linux: /home/
/.config/sublime-text-2/Packages/User/Package Control.sublime-settings
Open the Package Control settings file in a text editor and delete the name of the package you want to remove. Save your self a headache and remember to open the settings in text editor other than Sublime Text.
Packages
There are three locations for storing packages for different purposes.
Packages can be folders under Data/Packages (short: Packages )
or zip archives with the .sublime-package extension located under Data/Installed Packages (short: Installed Packages ) or any of its subdirectories.
Additionally, Sublime Text provides a set of default packages as zip archives in Application/Packages (short: Shipped Packages ), where Application refers to the folder where the Sublime Text executable resides.
This folder is not intended to be modified by the user.
For simplicity, we will occasionally refer to all these directories simply as Packages , and to a package in any folder ( .sublime-package or not) as Packages/PackageName . Consequently, a file inside a package may also be referred to as PackageName/a_file.extension .
# .sublime-package Packages
Packages distributed as .sublime-package zip archives should be considered read-only containers of resources and never be modified manually. Since they are usually updated as a whole, any manual changes made to them will be lost in the process.
If you do want to modify files in these archives, see overriding-packages .
# Interactions Between Packages with the Same Name
If two packages with the same name exist in both Installed Packages and Shipped Packages , the one in Installed Packages will be used and the one in Shipped Packages will be ignored.
Any file in Packages/PackageName takes precedence over an identically named file in Installed Packages/PackageName.sublime-package or Shipped Packages/PackageName.sublime-package .
See also overriding-packages .
# Package Contents
Typical resources found in packages include:
- build systems ( .sublime-build )
- color schemes ( .sublime-color-scheme , .tmTheme )
- key maps ( .sublime-keymap )
- macros ( .sublime-macro )
- menus ( .sublime-menu )
- metadata ( .tmPreferences )
- mouse maps ( .sublime-mousemap )
- plugins ( .py )
- settings ( .sublime-settings )
- snippets ( .sublime-snippet )
- syntax definitions ( .sublime-syntax , .tmLanguage )
- themes ( .sublime-theme )
Some packages may hold support files for other packages or for core features. For example, the spell checker uses Installed Packages/Language — English.sublime-package as a data store for English dictionaries.
# Package Types
In this guide, we categorize packages for clarity when discussing this topic, but Sublime Text doesn’t use this terminology and you don’t need to learn it.
shipped packages or default packages
A set of packages that Sublime Text ships with. Some of these packages are core packages, while others enhance Sublime Text to support common programming languages out of the box.
Examples: Default, Python, Java, C++, Markdown.
Located in Shipped Packages .
core packages
Sublime Text requires these packages in order to function properly.
Complete list: Default, Theme — Default, Color Scheme — Default, Text, Language — English.
They are part of the shipped packages and located in Shipped Packages .
user packages
Installed or created by the user to extend Sublime Text’s functionality. They are not part of Sublime Text, and are always contributed by users or third parties.
Located in Packages and Installed Packages .
installed packages
A subtype of user packages.
Installed packages are .sublime-package archives and usually maintained by a package manager.
Located in Installed Packages .
Due to the unfortunate name of this folder, talking about installing packages in Sublime Text is confusing.
Sometimes, in this guide, by installing we mean "adding a user/third party package to Sublime Text" (in any form), and sometimes we use the term in its stricter sense of "copying a .sublime-package archive to Installed Packages ".
A special type of user packages.
Override packages serve the purpose of customizing packages that are distributed as .sublime-package files. They are effectively injected into the original package and do not stand-alone.
Located in Packages .
Note that by third party we also refer to users of other editors, notably Textmate, as Sublime Text and Textmate share some types of resource files that can be reused without modification.
# Managing Packages
# Installing Packages
Regular users rarely need to know how to install packages by hand, as automatic package managers are available.
The de facto package manager for Sublime Text is Package Control
Packages can be installed in two main ways:
- by copying Sublime Text resources to a folder under Packages , or
- by copying a .sublime-package file to Installed Packages .
# Disabling Packages
To temporarily disable packages, you can add them to the ignored_packages list in your Packages/User/Preferences.sublime-settings file. Packages will be loaded or unloaded as needed when the settings file is saved.
# Enabling Packages
To re-enable a package, remove the package’s name from the ignored_packages list in your Packages/User/Preferences.sublime-settings file.
# Removing Packages
If you installed a package with a package manager, remove it using the method provided by the package manager.
If you installed a package manually, follow this procedure to safely remove a package:
-
the package while Sublime Text is running.
- Close Sublime Text.
- Remove the package’s resources from the disk.
- Remove the package’s name from the ignored_packages list.
In addition to the resources you have placed initially in a Packages folder or in Installed Packages , plugins may create configuration files (such as .sublime-settings files) or other files to store package-related data. Frequently, you will find them in the User package. Therefore, if you want to remove all traces of a package, you will need to find and remove all the additional files that it may have installed.
Shipped packages are reinstated during every Sublime Text update, so you can’t delete them forever. If you want to stop using a shipped package, disable it.
# Customizing or Overriding Packages
Since packages in .sublime-package zip archives are read-only, you cannot modify them directly. However, Sublime Text allows you to create an override package that will effectively inject files into the original archive without modifying the archive itself.
To create an override package, create a new folder under Packages and name it after the .sublime-package file you want to override, excluding the extension. Any file you create in this package will take precedence over any identically named file in the original package.
Python plugins in override packages are able to use relative imports for accessing other modules in the corresponding .sublime-package file as if they were part of it.
Files in override packages override entire files. If the overridden file in the corresponding .sublime-package is updated, you will not be notified.
(opens new window) package provides monitoring of override files and will notify you when the file it overrides has been updated.
# Merging and Order of Precedence
Package precedence is important for merging certain resources, for example, .sublime-keymap and .sublime-settings files, and for loading plugins ( .py files).
If an override package exists for a .sublime-package package, it will be loaded at the same time as the .sublime-package archive.
Sublime Text loads packages in this order:
- Packages/Default ; in lexicographical order; in lexicographical order;
- all remaining user packages, except for Packages/User , that did not override anything, in lexicographical order;
- Packages/User
# Reverting Sublime Text to Its Default Configuration
Reverting Sublime Text to a fresh state solves many problems that appear to be bugs in Sublime Text but are in fact caused by misbehaving packages and plugins.
To revert Sublime Text to its default configuration and remove all your settings and configurations, delete the Data directory and restart the editor. Keep in mind that the Installed Packages folder will be deleted too, so you’ll lose all your installed packages.
Always make sure to back up your data before taking an extreme measure like this one!