keyboard-shortcuts

Visual Studio Expand/Collapse keyboard shortcuts [duplicate]

和自甴很熟 提交于 2019-12-20 08:18:05
问题 This question already has answers here : Command to collapse all sections of code? (20 answers) Closed 3 years ago . In Visual Studio, if I have a code file open, I can press CTRL + M or CTRL + M + O to collapse all code blocks, regions, namespaces, etc. How to I do the opposite and expand everything? I have Googled this, but cannot seem to find a shortcut that works! 回答1: Collapse to definitions CTRL + M , O Expand all outlining CTRL + M , X Expand or collapse everything CTRL + M , L This

Visual Studio Expand/Collapse keyboard shortcuts [duplicate]

喜你入骨 提交于 2019-12-20 08:18:05
问题 This question already has answers here : Command to collapse all sections of code? (20 answers) Closed 3 years ago . In Visual Studio, if I have a code file open, I can press CTRL + M or CTRL + M + O to collapse all code blocks, regions, namespaces, etc. How to I do the opposite and expand everything? I have Googled this, but cannot seem to find a shortcut that works! 回答1: Collapse to definitions CTRL + M , O Expand all outlining CTRL + M , X Expand or collapse everything CTRL + M , L This

Is there a keyboard shortcut in Eclipse to fold the current method/block?

回眸只為那壹抹淺笑 提交于 2019-12-20 08:12:40
问题 Hey, question says it all. I have folding turned on in Eclipse (v3.4), and rather than having to click the little +/- in the page gutter, I'm wondering if there's a keyboard shortcut to just "fold the current method". A quick look at the menus and what-not in eclipse doesn't show a menu item for it, so maybe you just can't do it. Anyone? 回答1: By default they're bound to Ctrl + Numpad_Minus and Ctrl + Numpad_Plus , but you can rebind them. 回答2: To expand on petrilli's answer: Ctrl + Numpad

PhpStorm wrap/surround selection?

核能气质少年 提交于 2019-12-20 08:09:03
问题 Often in coding and templating I need to wrap a certain part of text. Is there any shortcut to wrap the current selection, for example: Hello World "Hello World" Hello World {{ trans 'Hello World' }} Im using PhpStorm 7 for Mac and PC. I found something similiar, with: ctrl + alt + j you can wrap with a html-tag but nothing else. Also ctrl + alt + - comments the current selection according to the current file format(php, twig, html, ...) 回答1: I know this is a little late answer, but I hope

What are the most-used vim commands/keypresses?

不打扰是莪最后的温柔 提交于 2019-12-20 07:58:09
问题 I'm a Ruby programming trying to switch from Textmate to MacVim, and I'm having trouble wading through the gargantuan lists of things you can do in VIM and all of the keypresses for them. I'm tired of hearing "You can use 'I' for inserting text, or 'a' for appending text after the character, or 'A' for appending text at the end of the line, or…" I can't imagine everyone uses all 20 different keypresses to navigate text, 10 or so keys to start adding text, and 18 ways to visually select an

TextMate: Comment-line shortcut does not work anymore (Cmd-/ or Cmd-Shift-7 on my swiss layout)

戏子无情 提交于 2019-12-20 04:33:14
问题 I experience a quite strange behavior in TextMate since some time. I had troubles to use the keyboard shortcut for commenting a line (which is Cmd-/ or on my swiss layout it is CMD + SHIFT + 7 where SHIFT + 7 results in a / ) a few times already since I switched to Lion 2 months ago (before I never had any problems). I then used to restart TextMate and it worked again. But now, restart doesn't solve the problem. So I went into the Bundle Editor and tried to reset the shortcut, and there I can

How do I skip past an automatically generated end </tag> in my IDE without lifting my hands off the keyboard (or using arrow keys)?

馋奶兔 提交于 2019-12-20 03:54:30
问题 OK, lets just do a case in point, but before that, a simple key. "*" means "this is where the cursor is". "**" means "this is where we'd like the cursor to be able to 'jump' to" Now assume you or I need to write some code, lets say we're not really even thinking that hard and might even be copying down someone else's code. We're patient, but in a hurry. OK, so you're writing this... <div class="subject show"> #ok, the ">" and "" were pregenerated, but I didn't need to skip, next line <h2

Could be Text orientation of JTextArea changed by keyboard shortcut?

一笑奈何 提交于 2019-12-20 03:38:26
问题 A JTextArea has componenent orientation set to LEFT, so text is written from left to right. Sometimes, it happens that while the user is writing, the text orientation suddenly changes to right, so all the text appears aligned to right. I can't explain why this happens (I have no direct feedback by users), but I guess that, while the user is typing, he activates some keyboard shortcut which changes the text orientation. Does someone know how this can happen? Can be there something else which

Visual Studio 2015 Intellisense Keyboard Options

梦想与她 提交于 2019-12-20 03:26:18
问题 First, I'm asking this here, rather than on the Microsoft forums, because they're, well, you know what they are. I like the VS2015 Intellisense autocomplete features -- when I want them. But they've stupidly added the spacebar as a selection key. Even more stupidly, they've added the '.' the ':' and probably other boundary characters as selection keys, too. What this means, is I'm often typing happily along (and rather quickly), and whenever one of the "stupid" selection keys is pressed, I'm

Preventing keyboard shortcuts being triggered in QScintilla (example code)

江枫思渺然 提交于 2019-12-20 02:54:38
问题 I would like to prevent application keyboard shortcuts from being triggered when editing code in my QScintilla widget, just like a normal QLineEdit field doesn't. In the executable example code below it is not possible to type whitespaces in the QScintilla widget because the spacebar has been set as a shortcut, but in the QLineEdit it works properly. I wonder if it could be something to do with the QScintilla not grabbing keyboard input properly (though it obviously does, since it is possible