Sublime text - Remember hidden code - hide

In sublime editor you can hide code like this:
Before:
After:
However if I reopen this file, all code is visible again. How can I hide this code until I open it myself again?

I found a solution. I installed BufferScrol with the package manager.

Related

How to remove code suggestion / help popup in sublime 3

I keep getting this annoying code help popup in sublime 3.
It seems to have only appeared recently. I'm not sure if it's part of sublime or some plugin.
Is there a way to disable this from showing?
EDIT:
Turns out this is to do with the package Naomi. Does anybody know if this is a configurable setting with this package?
you need to do following steps:
Go sublime Menu bar
select preferences
add this following code to user file and save it.
Blockquote
{
// Controls auto pairing of quotes, brackets etc
"auto_match_enabled": false,
// Enable visualization of the matching tag in HTML and XML
"match_tags": false,
}
I installed sublime, and disable completions popup by adding
"auto_complete": false
to the preferences.
You get to the preferences by: Menu Preferences -> Settings. There, you are supposed to edit the User Preferences file by adding custom prefs like the above snippet between the existing curly braces.

Sublime text editor doesn't auto-refreshes the file if it is modified by another program

Although Sublime is a really powerful text editor but I am facing an issue. I have been using sublime text editor to view logs of my application.Suppose I have already opened file in my editor. After the logs are modified by the app server.
Sublime doesn't give any popup like we get in other editors
Example:
NOtepad++ says:
Also it doesn't modify the file. I have to close the file explicitly and then I re-open the file to ready the modified logs.
Only options i get in my sublime preferences are :
Please help..!
You are using an extremely outdated version of sublime (1.4). You can enable this functionality by upgrading and performing a small settings tweak:
Download the new SublimeText
Install it and open it
Go to the preferences menu and select "settings"
This will open the settings files for sublime, scroll down to line 349 on the left panel and copy that line.
Paste in the copied line into the right pane and replace "false" with "true"
Save and restart SublimeText
This should fix your issue entirely while also upgrading you to the awesome new SublimeText :)
Happy coding!
Set the following setting to true.
Menu > Preferences > Settings
// Always prompt before reloading a file, even if the file hasn't been
// modified. The default behavior is to automatically reload a file if it
// hasn't been edited. If a file has unsaved changes, a prompt will always
// be shown.
"always_prompt_for_file_reload": true

Sublime Text Side Bar Activating every time when switching between open files. How can I stop it?

Basically:
Using Sublime Text: build 3114 on Win7
Every time when I move between open files in different tabs the side bar annoyingly keeps activating itself each time and keeps sliding in.
Is this a bug or am I missing some setting somewhere that I have to tweak?
Looked all over the place for an explanation/settings option but no luck.
I have Sublime on another Win7 machine and the sidebar behaves as expected. It doesn't activate itself when I move between open files.
YES!!! finally found what was doing it :)
An obscure plugin I had : AutoHide Sidebar , Uninstalled and all is good..finally...
Hope this helps anyone who gets in my situation.
you can hide side bar from view
i had the same problem.
I did resolve it! just uninstall package AutoHide Sidebar and SyncedSideBar.

Preference - How to prevent duplicate tabs from being opened?

I like to work in multiple columns when working on a project.
I will often switch back and forth between the columns and open other files using cmd+p.
If one column has the file open already then it will just refocus on that tab (good!). However, if I am in a column where the file isn't opened, instead of switching focus to that column, it will open a new tab and clutter my workspace(bad!).
Is there a setting I can change so I can achieve the desired behavior I described above? Chrome has an extension that can do this
There's a plugin for Sublime text 3 for this as well, it's called Open in relevant window and it works just like you just described.
Installation is simple and just like any other ST3 plugin, through package control.
Hope this helps!

Is it possible to pin the project into folder panel in Sublime Text 3?

Updated: Probably, my question doesn't make sense. Could you please close it?
I am quite new to Sublime Text. I open my project by dragging and dropping my project folder into Sublime Text.
However, when I quit Sublime Text, and reopen it, my project is gone. I need to drag and drop again. Is it possible to pin my project into Sublime Text, so the next time when I open, my project is still there?
Thanks.
Note: I am using Sublime Text 3
You can save your project on disk: Project > Save Project As... When you open your editor next time it should open automatically. If not, go to Project > Open recent.
Documentation: https://www.sublimetext.com/docs/3/projects.html
Set "hot_exit": true in preferences
Exiting the application with hot_exit enabled will cause it to close
immediately without prompting. Unsaved modifications and open files will
be preserved and restored when next starting.
Closing a window with an associated project will also close the window
without prompting, preserving unsaved changes in the workspace file
alongside the project.

Resources