I'm using Sublime Text 3083.
When I load a file with several thousand lines and try to edit it, it gets amazingly un-responsive to the point that adding/removing even one character takes it seconds.
I have > 20 packages installed and I need a way to disable all of them at once, to check if this issue is package related or o not.
I've searched around and I know that you can disable packages one by one but that's not good when lots of packages are installed. According to this post in the sublime forum, there is no way to do this but the post is rather old (and also not an official statement)
So, is there a way to do this? Perhaps with a package or a --no-packages flag or some other trick?
BTW: for the sake of completeness, after applying the solution I found that there were two packages responsible for the lag: GitGutter and WordHighlight.
The best thing I can think of is to keep a list of the package names that you can copy and paste into your preferences file in the "ignored packages" section. If you have any sort of linter or code intel that might be the culprit if it's several thousand lines.
"ignored_packages":
[
"SublimeCodeIntel",
"Vintage"
]
Another thing to try would be to just make a copy of your Packages/Users/Package Control.sublime-settings file, then edit the original and delete all the listed packages there and restart ST3. Definitely make that copy first in case it screws up.
Gabriel reports he ultimately solved the issue by copying the list of installed packages out of the Packages/Users/Package Control.sublime-settings file and paste them into the ignored_packages section of his preferences file.
Packages can be simply disabled as follows
Press Ctrl+Shift+P to open Command Palette
Type disable, select Package Control: Disable Package
This will give the list of all the Installed Packages, click on the one which you want to disable.
That's it. And you can enable disabled package anytime, just type enable in step:2.
Related
I am using Sublime Text-3 version 3.0 build 3143. I have connected to Salesforce using MavensMate and opened the VF Page, but dont see any color when Opened the VisualForce Page in Sublime Text. How to fixed this issue ??
VisualForce isn't something that Sublime supports out of the box, so in order to have things like syntax highlighting, you'll need to install a package that adds that support in.
The de-facto repository of third party add-on packages is Package Control, and doing a search reveals that there is a VisualForce package available.
The description for the package mentions that it provides syntax highlighting for .page files. Assuming that's the kind of file you're trying to open (I'm not familiar with VisualForce at all), this is probably what you want.
In particular, the content represented in your image appears like the following for me once this package is installed (except that I have elided what appears to be an extraneous </apex:outputText> after the email_us label):
For what it's worth, the package also includes completions to make creating such files easier.
Since you mentioned in comments that you're a little unclear on the process, here's a step by step set of instructions on how to get set up for this with Sublime Text 3143.
If you haven't already done so, you need to install Package Control. If it's not installed, the commands in the next step won't be available.
There are official installation instructions for this, but in your build of Sublime Text you can also select Tools > Install Package Control... from the menu or Install Package Control from the Command Palette in order to do the same thing.
If that menu item is not visible in your menu/command palette, then Package Control is already installed; the command is hidden if it's not needed.
Open the Command Palette with Tools > Command Palette or the appropriate key binding for your operation system (visible in that menu entry), then select the command Package Control: Install Package.
This will download the list of all packages and present them to you in a list; it may take a moment to download the whole thing. You'll see a spinner in the status line of the window to tell you the operation is in progress.
When the list of packages appears, select the VisualForce package from the list of packages; you can find it quicker by entering visual to filter the package list down.
Once this is done, the package will be installed; during the installation there will be a spinner in the status line to tell you, and the status line will briefly say that the package was installed once it's done, but it goes quick so if you blink you might miss it.
With the package now installed, you should be able to close your file and open it again to have the appropriate syntax applied to it.
You can also select Set Syntax: VisualForce from the command palette or select View > Syntax > VisualForce from the menu in order to manually set the syntax in the current file to the VisualForce syntax.
You'll need to do this for example when you create a new file since the default syntax is Plain Text and the appropriate syntax won't get set until you save the file with an appropriate extension first otherwise.
The EmacsProEssentials Sublime Text 3 package has a bug in the keybindings:
{"keys": ["ctrl+\\"], "command": "undo"}
Undo is not ctrl+\ in Emacs it is ctrl+/.
The developer is aware of the issue, but I'd like to remap the key in the meantime.
How do I remap the key in a package in Sublime Text 3?
When Sublime loads package resource files, it loads similarly named files from all packages and combines them together. This is done in a specific order, and in that order the User package is always last so that your customizations take precedence.
So the easiest thing to do would be to just use Preferences > Key Bindings (this is under Sublime Text if you're on MacOS) and put the fixed binding in your custom key bindings.
Once you do that, your version of the binding will be active (as will the old one from the package), so things will work the way that you expect.
When the upstream author updates the package you can remove your customized binding, although presumably this is not vital if you're both going to make the same change.
The more involved version of the fix involves using PackageResourceViewer to find and open the packaged version of the sublime-keymap and modify it there, thus overriding it and fixing it at the source.
However if you do that, when the author updates the file your change will still take precedence without any notification otherwise, so you'll be effectively locking yourself into your modified version, which could conceivably cause troubles down the line.
You can mitigate that by also installing OverrideAudit, which will tell you when this sort of thing is happening, but fixing it in your User package is probably the better way regardless.
I installed sublime text 3, and I wanted to install Package Control. So I run the installation code at the sublime console as it's instructed at the Package control installation webpage. When I run it, I got the 275309 number as result; however I don´t find the package control options when using ctrl+shift+P.
How may I know if Package control was installed correctly? Is there something I am missing?
I just found here and here, that for some reason package control was moved to ignored-packages array in settings. So it can be fixed by erasing the package control from that array. To do so you go to Preferences->Settings and in the files search for the "ignored-packages" array, then delete package control, save, exit.
It is assumed this happend due a bug in the last update.
Thanks
I am using Sublime Text 3, and I installed the very useful angularJs package which gives great code completion for both JavaScript and HTML files, and I really don't want to disable it, but it stops the default word completion of Sublime Text.
In Preference->Package Settings->AngularJs I set the disable_default_js_completions option to false in both user and default settings, but it still messes with the word completion.
Found other people with the same issue :
https://github.com/angular-ui/AngularJS-sublime-package/issues/69
The only fix seems to be to install a TernJs package for auto-completion to replace the default functionality.
The issue is reported, and you have a temporary solution, i.e., TernJS package installation. I had to install that too in order to see buffer words and such appear in the autocomplete list, it wasn't folding them in even at the lower priority. The completions that show in Show Completions now appear after installing TernJS. I don't think there is a known hotfix, I've contributed to the report, we'll need to wait on a bug fix, or just keep using TernJS. You probably want to install Emmet and Better Completion packages if you haven't already, as well. Between those, AngularJS and TernJS packages, you're pretty covered, minus any specialities you require.
I don't know of any other way to access Package Control, but i find it weird that it doesn't work anymore, could the installation of other packages have caused it to just stop working? I don't even know how to debug something like this or find a solution for it, it appears this doesn't happen to many people, but it surely is happening to me.
When i press cmd+shift+p i don't get the Package control window. My ST3 has been very buggy and no updates have ever been available.
Is there just a quick way to wipe it all clean and start over?
Thanks.
If you want to completely start from scratch, first exit Sublime, then delete /Applications/Sublime Text.app. Finally, delete ~/Library/Application Support/Sublime Text 3.
You can now re-download ST3 and reinstall Package Control. Restart Sublime as instructed, and you should now be able to hit ⌘ShiftP and open the Command Palette. Type in packcon to get the Package Control options. You'll need to reinstall all your plugins, and reset any custom preferences, keybindings, snippets, etc. you've made.
Good luck!