Sublime Text 2 Can't Type Arrow Keys or Copy Paste Only Letters Work - sublimetext2

I was using Sublime yesterday and all was fine until suddenly I can not use any special non-alphanumeric characters (for example, CTRL-C or CTRL-V or arrow keys) and it also will not allow the mouse to select anything including the tabs. I can select an execute menu items but nothing in the file section. I have tried deleting the settings file and reloading and the problem still exists.

Related

VS Code: Auto-indent on tab press to match indentation of previous line

For comparison:
In Sublime (and also Atom), if I press tab under a line of code that already has 4 tab spaces, Sublime will automatically jump to the same tab spacing of the previous line (4 tab spaces).
In VS Code – when trying to accomplish the same thing – tabs will fail to 'jump' to the previous line's spacing, and force me to manually press tab multiple times, instead of once.
Is there a work-around, or am I missing something?
Sublime, Atom - 1x tab press
VS Code - 4x tab press
If you add this to your settings, you'll be able to just type out the line without watching indentation and whenever you hit enter, vscode will indent that previously written line automatically:
"editor.formatOnType": true
I know this isn't exactly what you're looking for, but I thought I might as well share and hope this is a satisfying answer.

Hide one line in Sublime Text 3

I have one line in a html file containing a base64 representation of an image. This line spans thousands of lines in the editor, which is a huge hassle when always scrolling past it.
Is there a good way in ST3 of hiding this line?
Select the text you want to hide, then from the Edit menu -> Code Folding -> Fold.
Note that folding is not stored in the session, and reopening the file or ST will display the text unfolded again.
You could also take a look at plugins designed to help you with this: https://packagecontrol.io/packages/Base64%20Fold
you can simply press ctrl+shift+{ and to revert back just press ctrl+shift+}

How to make a specific file always visible on the sidebar everytime I open sublime text 3

I switched from Notepad++ to Sublime Text 3 last week and I'm loving it. I know Notepad++ don't have a feature like this also, but is there a plugin or setting on Sublime Text 3 that I can use to make a file always visible on my sidebar every time I open it? I have a single text file that has some login info and useful note for my development and I want Sublime to remember to at least add a shortcut on that file on my sidebar so that I can access it anytime I want to.
I want workdocs.php to be always visible on my sidebar when every I open my Sublime Text 3. Thanks in advance!
It's not exactly what you want but you could try Sublime FavoriteFiles:
https://github.com/facelessuser/FavoriteFiles
It's ST3 compatible and works well. You can assign keyboard short-cuts to the various commands or use Control + Shift + P to access them quickly.

don't restart from beginning when searching text

I looked in the settings but apparently Sublime Text doesn't have an option to disable the restarting from beginning when doing a search.
I want that SB stops at the end of file when he finished searching
When you open the Find bar with CtrlF (⌘F on OS X) there is a button to "wrap" the search:
If the button is not selected (as shown above), then Find will stop at the end of the file, and not "wrap" back to the beginning. This option is also available in the Replace dialog as well.

Sublime Text 2 multiple selections editing in vintage mode

Is there there a way to edit files across multiple selections in vintage mode?
I hit cmd + D (this is under a Mac) to select instances of string in the file, but I can't figure out how edit the selections.
This is under Sublime Text 2.
I haven't tested this on a Mac, but on Linux using CTRL-D puts you in visual mode. When you're in visual mode c allows you to change the highlighted text, putting you into insert mode much like vim would.
I struggled to figure this out myself. I came to find that simply selecting a word with Ctrl+D and then pressing c isn't a complete solution. It will only select the first occurrence of a word. In order to select and change them all I have found that I need to execute the following sequence:
Place the cursor at the beginning of the desired word
Ctrl+D to highlight the word
Ctrl+F to open the Find box pre-populated with the desired word
Alt+Enter to select all of the matching words
c to make the changes
Esc to return to COMMAND MODE
There are several posts all over the Internet (including the documentation on the Sublime Text website) which states that pressing Alt+F3 will select all of the matching words. This does not work for me on openSUSE/KDE. Pressing Alt+F3 will instead open the window menu for minimizing, maximizing, etc. In fact, if you hover over the Find All button after opening the Find box it will display Alt-text indicating Alt+Enter.
Usually I just press shift+up/down/right/left, then you will find that you can select whatever you want. It works on Mac sublime 3.