This question already has answers here:
Keyboard shortcut to comment lines in Sublime Text 2
(15 answers)
Closed 7 years ago.
I have a french canadian keyboard on my mac and I can't find a solution to make work the default shortcut in sublime text 2.
Few times, by mistake, I have make work the shortcut for comment a line but I don't remember the keyboard shortcut I do... :\
How I can fix my problem?
Thanks !
You can find all predefined and user defined shortcuts under
Preferences > Key Bindings - Default
Preferences > Key Bindings - User
When you need to add a shortcut or change one which defined in Default just copy related line to Key Bindings - User also check Json syntax which sublime uses for configurations. I haven't any idea what changes in french canadian keyboard but I hope it would solves your problem.
Independent from keyboard, Sublime says :
⌘ + / Comment/un-comment current line
⌘ + ⌥ + / Block comment current selection
Updated :
Default Shortcut List : http://docs.sublimetext.info/en/latest/reference/keyboard_shortcuts_osx.html
Related
Previously I used Windows 10 operating system. I am a beginner and I am learning HTML, CSS. I used Visual Studio Code on Windows 10. There I used the shift + alt + arrow-down key to duplicate some selected lines just under the selected lines. I recently shifted to Ubuntu and the shift + alt + arrow-down key is not working like windows. It is not duplicating the selected lines.
How can I make these keys working like windows or is there any other key to do the same work?
Help me, please.
For Linux:
Ctrl+Shift+Alt+Down and Ctrl+Shift+Alt+Up
You Might need to use numpad Down and Up for Linux
You can also go to: File > Preferences > Keyboard Shortcuts. and search for: Copy Line Down or Copy Line Up, change the keyboard shortcut for this command by right clicking on the command and selecting Change Keybinding
I used Shift + Command (Ctrl) + L in Sublime Text 2.
What is the equivalent shortcut to initialize multiple cursors on selected lines in PHPStorm 8?
You can add it yourself.
Go to Preferences -> Keymap
Search for Clone Caret Below and Clone Carrot Above
Bind a shortcut (I used Ctrl + Command + ↓ for the first one)
Hit it until all the lines you want to edit have cursors :)
You can achieve this in PHPStorm by Alt + Click
As I understand this particular functionality is not yet implemented.
https://youtrack.jetbrains.com/issue/IDEA-122181 -- star/vote/comment to get notified on ptrogress.
This is now available via the Extra Actions plugin.
Credit
GitHub
To enable, edit your keymap:
Recommended shortcut: Ctrl+Shift+L
I have installed emmet for Sublime Text 2...
And it works - kind a strange way
When I enter d it starts showing possibilities, but as soon as I press: : emmet shows completely different tip:
b (bottom)
So I need to press esc to close fuzzysearch box and press tab to allow Emmet do what it is used to do.
Dow, if I don't press esc before the tab key the resould is: d:bottom:, is I press esc, it desoults in correct: display:block.
Do you have an idea how can i fix that?
This happens because Emmet tries to respect default ST completions and due to lack of API support to properly handle built-in snippets: https://github.com/sergeche/emmet-sublime#tab-key-handler
By default, Emmet will not expand abbreviations by Tab if there’s autocomplete popup visible to allow users to work with default ST completions and snippets. You can override this behavior:
Go to Preferences > Settings — User
Add "disable_tab_abbreviations_on_auto_complete": false option. Make sure this file contains valid JSON.
After that everything should work fine, but you’ll no longer able to complete items from autocomplete popup with Tab key, use Enter key instead.
I had a similar issue but my fix was different to that of the accepted answer.
I had to go to Preferences > Settings — User and remove "emmet" from the ignored packages and everything started working again!
I know i can do it by Alt+f then 1 or 2 or 3. Is there a way give new shortcut in MyEclipse. I unable to find & set it under Windows > Preferences > General > Keys.
For Example: I have opened a file called Task.java in MyEclipse. I closed it accidentally. Now i want to open it again without navigating through Package Explorer.
I want Something similar,
Ctrl + Shift+ T
to open recently closed Tab in the Firefox & Google Chrome.
Press Ctrl+Shift+L to view all the shortcut keys , Press the same once again to open the Keys Binding dialog.
Type the text in the filter text box for eg. activate , you will get Activate Editor in the search result list with default key of F11.
Double click it and choose your favorite key you want in the Bindings say F9. Click Apply to Change it. Click OK.
Illustration
Does the keyboard shortcut for moving from editor to console back and forth in Sublime Text 2 exist? If so what is it?
For a Python Code block you can use Ctrl+` (The single quote on the tilde key). There are some other useful shortcuts here:
Useful Shortcuts
Not sure if this helps with other scenarios.