keyboard-shortcuts

How to mimic Visual Studio's CTRL-X, CTRL-V functionality in Notepad++?

情到浓时终转凉″ 提交于 2019-12-02 23:47:35
I'm using Notepad++ for some projects and miss Visual Studio's Ctrl + X , Ctrl + C functionality that cuts or copies the entire current line when no text is selected. The cut line shortcut seems to be Ctrl + L , which is not as convenient as Ctrl + X and the copy shortcut seems to be Ctrl + D , Ctrl + L , which is even less convenient. Although a similar question has been asked before, the way to do this in Notepad++ was not provided and I cannot find a solution on the Notepad++ site or on its forums. I've created a Notepad++ plugin that does this (without the need of python). It can be found

List of de facto standard keyboard shortcuts for Windows apps?

时光怂恿深爱的人放手 提交于 2019-12-02 23:39:27
Let's say I'm developing a new desktop application for Windows. Is there a list somewhere that I can consult (either from Microsoft or a 3rd party) of keyboard shortcuts that all Windows applications should support? (Note: When I say "all Windows applications" here, I really mean "all Windows applications where a particular keyboard shortcut makes sense." For example, a standard "Begin debug session" shortcut might make sense across IDE applications such as Visual Studio and Eclipse, but not for other types of applications such as Notepad or Firefox. Also, it might not make sense for certain

How to pass a line to the console in sublime text 2 editor

随声附和 提交于 2019-12-02 23:28:18
I use RStudio for working with R programming language and find the ctrl+enter shortcut to send a line to the console extremely useful in troubleshooting my work. Now I am using sublimetext2 and I would like to do the same thing in RStudio, send a line to the console. Is there a way to send the existing line to the console or a SublimeREPL console? I don't know about the console, but this is possible with SublimeREPL . As long as you have a REPL and a file of the same language open at the same time, you can send a line (or a selection or file) to your open REPL via the SublimeREPL Source Buffer

Finding Shortcuts in Aptana Studio 3.0 to Comment Code [closed]

坚强是说给别人听的谎言 提交于 2019-12-02 23:25:30
I can't find any shortcuts for comment my code in Aptana Studio 3.0. I need shortcuts both to comment individual lines and for commenting selected blocks of code. Some have told me to try to comment with shortcut WIN + / on my Windows OS but that does not appear workable. Robert Grant It depends on which language you're writing in (is this CSS, Javascript, HTML?) For Javascript: Ctrl - / to add or remove // for a single line of code, or for multiple selected lines. The standard Java commenting shortcuts are: Ctrl - / to add/remove // for a single line of code, or for multiple selected lines.

Sublime Text 2: how to position cursor at begin/end of buffer?

倖福魔咒の 提交于 2019-12-02 23:25:27
I feel silly having to ask what seems like a basic question. I've Googled plenty, and I've examined the Default(OSX).sublime-keymap file, but I can't figure out: How can I make the cursor jump to the beginning/end of the current buffer in Sublime2 on OSX? Home/End scroll to the top/bottom respectively, but they do not position the cursor at the begin/end of the buffer. Surely there is a way to do this. Some apps (e.g. Intellij) use CMD+Home/End for this, but that doesn't work either. These work for me (Sublime Text 2 v2.0.1 on OS X 10.7.5) ⌘-↑ : start of buffer ⌘-↓ : end of buffer The CMD-up

Keyboard shortcut to display error in IntelliJ

一个人想着一个人 提交于 2019-12-02 23:20:49
I like to use my mouse as little as possible for health reasons. Almost all the common tasks in IntelliJ I can do via keyboard shortcuts, except for displaying the message of an error. How can I have a keyboard shortcut that will show the tooltip of the highlighted error? For example, I have an error such as: Then I hit [magic-keyboard-command] and I get: In Eclipse this is possible by pressing F2. Is there an equivalent in IntelliJ? Varon The standard for JetBrains tools is Ctrl + F1 ( Cmd + F1 on Mac). I use F2 on the mac, it cycles round all the errors in a single file and displays the

How to surround code by curly braces in IntelliJ IDEA?

a 夏天 提交于 2019-12-02 23:15:06
How to surround code by curly braces in IntelliJ IDEA? Is there any keyboard-shortcut for such operation? zagyi Yes, try Ctrl + Alt + T (Surround With), then A (Curly Braces). Ajang R Just configure Smart Keys as follow: IDE Settings > Editor > General > Smart Keys > Surround selection on typing quote or brace . From the IntelliJ built-in help: If this check box is selected , the selected text on typing a quote, double-quote or brace, will be surrounded with these characters. If this check box is not selected , then the typed quotes, double-quotes or braces will replace the selection. Just

How to navigate between instances of selected text in Sublime Text 3?

孤者浪人 提交于 2019-12-02 22:51:45
Sublime Text 3 highlights all instances of currently selected text. Is there any shortcut to navigate cursor to the next / previous instance (copy) of selected text? So far, I've only managed to find out some information about adding more instances to current selection (expanding it) with Ctrl + D , skipping current instance ( Ctrl + K , Ctrl + D ) and deselecting it ( Ctrl + U ), which actually is a soft undo, not a real command. I can use Ctrl + D to go to next instance of selected text and Ctrl + U to undo. But, since these shortcuts operates on selection, this is not, what I'm looking for.

Tkinter dropdown Menu with keyboard shortcuts?

为君一笑 提交于 2019-12-02 22:32:48
I would like to have a Dropdown Menu in Tkinter, that includes the shortcut key associated with this command. Is this possible? How would I also add the underline under a certain character, to allow for Alt-F-S (File->Save)? Bryan Oakley import tkinter as tk import sys class App(tk.Tk): def __init__(self): tk.Tk.__init__(self) menubar = tk.Menu(self) fileMenu = tk.Menu(menubar, tearoff=False) menubar.add_cascade(label="File", underline=0, menu=fileMenu) fileMenu.add_command(label="Exit", underline=1, command=quit, accelerator="Ctrl+Q") self.config(menu=menubar) self.bind_all("<Control-q>",

Which key to bind to avoid conflict with native browser shortcuts

半世苍凉 提交于 2019-12-02 22:32:40
I didn't see the question yet. Every browser has different native keyboard short-cuts. Did someone already tried to figure out which one free / safe to use if we want to add some spicy stuff to our web-app? Some more information: I don't especially need to target every browser. The 5 majors one are sufficient. For example Opera uses Ctrl + key as main combination, leaving almost all Alt + key "free to bind". As different browsers uses a different main shortcut activation key ( Ctrl in Opera), I can easily imagine to also use a different key to bind shortcuts to. i.e Alt + Key in Opera and Ctrl