Sublime text 2 keyboard layout changed randomly on Ubuntu - sublimetext2

Sublime text keyboard layout appears to have changed randomly during coding. Not sure how it happened. Keyboard is UK layout. What used to be " (Shift + 2) now give # instead! Anyone can help? The swap between # and " is just one, there are lot more messed up keys.

Never mind guys, hit the shortcut on the top left corner of the desktop that changed the layout to US from UK. It looks like so 'En' with a subscript of 1 or 2.

Related

Using both Safari and Chrome on an iPad + Google Colab – no copy/paste

am using iPad air and magic keyboard setup - unable to copy and paste within a cell in google colab, super frustrating.
tried the shortcut menu - but to no avail.
anyone has a solution maybe?
actually I found the solution just by trying different key combination.
1.First just pick what you want to copy, you can use touch screen or this key combination:
By clicking shift and arrows you can mark/highlight (when you add to shift+arrow other keys you can speed it up, like:
shift+cmd+left/right [start-end line curosor position]
then shift+up/down arrow [highlight whole line] etc.)
2.When u have your lines chosen (highlighted) you can copy them up or down by this key combination:
shift+alt+up/down arrow
3.When u have it copied and want to move it somewhere else, just stay it highlighted after you copied it and then move it by this key combination:
alt+up/down arrow
This wont reorganize your code, it will swap the lines, so you can pick any place you want your lines to be copied.
Hope it works for you!
For me it works even on Safari without any problems, and when you practice it its actually quite good and easy.

Shortcut to jump back to last location

Often then I code I press on methods to check them out. Obviously PhpStorm jumps to that method location. Is there a shortcut to jump back to where I was before pressing on a method? I don't want to scroll back to that certain part of code again.
Using Windows 10
Try this:
Ctrl + Alt + Left
Will take you to last location. If you use Right you can go the other way around.

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.

Move cursor across html tags in text editor

How can I move the cursor across HTML tags in a text editor like Sublime Text or anything else instead of pressing ctrl+arrow (not a direct move) keys so many times?
Is there any shortcut available?, if not, how can I create one for Sublime Text editor?
Here is how I want to move the cursor.
<html>
<p>
"a"
</p>
<div>
"b"
</div>
</html>
I want move the cursor from position a to b using a shortcut.
I'm not familiar with Sublime but I have heard that it's very similar to Textmate, it may actually be based on Textmate, I'm not sure.
I am familiar with Textmate 1.5 though, and it does have a feature like this which allows you to setup tab triggers and templates by using the built in Bundle Editor.
note: it's worth noting that there is a newer version of Textmate available. I believe the current version is 2.0 but I tried it and decided to stick with 1.5 because 2.0 implemented some major changes and I preferred to stick with what I was familiar and happy with.
A very basic example of how tab triggers can be used in Textmate would be..
<table border="0" cellpadding="$1" cellspacing="0"><tr><td height="$2"><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr></table></td></tr></table>
This is a simple table spacer that I use in emails rather than using transparent shims. By nesting a table within a table it will prevent it from collapsing and works as a cross-compatible alternative to transparent gif images for email layouts.
By setting this up in Textmate, all I have to do is type tspace followed by a Tab and this code automatically populates at the position of the cursor. Subsequent Tab's will jump the cursor to each $ notation, which is Textmate's own syntax.
So tspace + Tab generates the code, + Tab jumps to $1 where I then fill in the appropriate value, + Tab jumps to $2 where I fill in the appropriate value + Tab jumps to the end of the code block.
note: you can also set it up where any placeholder is repeated so if I notate $1 in more than one location, it will automatically populate everywhere that variable is, the first time I fill it in.
This is only the most basic of examples. There are other similar features in Textmate, and they are only limited by how complex you set them up to be.
Though, as I mentioned, I'm not familiar with Sublime, I did look into it briefly and found this article which outlines the exact same functionality that I've described and how it works within Sublime.

Increase the font size on Sublime Text 2 status bar?

Is it possible to increase the font size on the Sublime Text status bar? I did some searching and didn't find much at all on the subject. I sometimes miss important information displayed in the status bar simply because its so small I don't notice it.
As far as I know you should modify theme settings for that. Please take a look at this answer (at the bottom of the page) Customize interface fonts
Try this it will work for sure in Sublime Text 3 .
navigate to Preferences -> Default File Preferences .
Its will open the file in Sublime text itself
look for "font Courier New 10"(for me Line no: 14)
just change the 10 to X size.