Do You Use The Ctrl-W Keyboard Shortcut?

Answered

By default, Ctrl-W is mapped to "Select word at caret".
Do many people use this?

Most web browsers have Ctrl-W mapped to close active tab.
Close active tab in IDEA is mapped as Ctrl-Shift-F4.

I know that I can change my keymap to whatever I want, but I am interested in what other people think about the Ctrl-W mapping.

As you can probably tell, I'd like Close Active Tab to be Ctrl-W by default. :)

28 comments
Comment actions Permalink

By default, Ctrl-W is mapped to "Select word at caret".
Do many people use this?


I can't speak for others, but I use that a lot since ages. After having used
it a couple of years, I realized that it seems to be a common short-cut for
editors (or browsers) to close the current file.

Close active tab in IDEA is mapped as Ctrl-Shift-F4.


Ctrl-Shift-F4 is a very common shortcut to close editors, too, and seems to
originate from Windows' MDI.

Tom

0
Comment actions Permalink

it's probably most used shortcut I use within Intellij ;-)

3
Comment actions Permalink

I just noticed that Ctrl-Shift-F4 doesn't actually work anyway!
Turns out that Ctrl-F4 works and is the MDI default
http://support.microsoft.com/kb/126449

0
Comment actions Permalink

No!
Select word at caret???
Surely Ctrl-N is the shortcut king! :^O

0
Comment actions Permalink

yeah. but I use it quite often

0
Comment actions Permalink

According to our statistics Ctrl+W is the most frequently used feature (among features listed in the Productivity Guide). Note that it isn't just
'Select Word', you can press it again and again to select expanding areas of the source code.

--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

On Mon, 31 Oct 2011 16:02:01 +0400, Nikolay Chashnikov (JetBrains) wrote:

According to our statistics Ctrl+W is the most frequently used feature
(among features listed in the Productivity Guide). Note that it isn't
just 'Select Word', you can press it again and again to select expanding
areas of the source code.


Is it described as "Syntax aware selection" in the Productivity Guide? 
That's my second most used feature ("Basic code completion" comes first).

--
Mark Scott
mark@codebrewer.com

0
Comment actions Permalink

just checked, in my case:
Syntax aware selection (ctrl+w): 70.097
Basic code completion: 26,238

0
Comment actions Permalink

Turns out that Ctrl-F4 works and is the MDI default


You are right, it's Ctrl+F4 without Shift.

Tom

0
Comment actions Permalink

Productivity Guide? What's that?

Tom

0
Comment actions Permalink

see help > productivity guide (statistics + tips)

0
Comment actions Permalink

One of my standard setups for IDEA is to remap ctrl-w (on Mac, cmd-w) to close the current editor tab...

0
Comment actions Permalink

Thanks. It was grayed out the last time I skimmed this menu and hence I
overlooked it.

Tom

0
Comment actions Permalink

Use it ALL the time. Long live CTRL+W :)

  • Syntax Aware Selection (Ctrl+W): 34,556 times (once in 6 minutes)
  • Basic Code Complete: 32,526 times (once in 6 minutes)
  • Smart Completion: 4,815 times (once in 25 minutes)
  • Variable name completion: 8,419 times (once in 9 minutes)
  • Go to Class (Ctrl+N):  6,374 times (once in 28 minutes)
0
Comment actions Permalink

Mine is completely blank. Everything says Never.
Are these stats gathered from zero each time you open IDEA or is it from since you installed IDEA?
What happens if you are an EAP user installing new versions all the time? Do the stats reset each time or are they saved between versions?

0
Comment actions Permalink

I believe you have to enable it , search for "Usage statistics" in settings window

0
Comment actions Permalink

this was replay to "Mine is completely blank. Everything says Never." post

0
Comment actions Permalink

Hello opticyclic,

The stats are stored in the config file directory. If you import your config
files when installing a new version, they will be collected across versions.
If you start with a new config directory, they'll be reset.

Mine is completely blank. Everything says Never.

Are these stats gathered from zero each time you open IDEA or is it
from since you installed IDEA?

What happens if you are an EAP user installing new versions all the
time? Do the stats reset each time or are they saved between versions?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

On a Mac I thought it was Alt-Up arrow, at least that is what it is on mine...maybe that has something to do with me using the IdeaVIM plugin and it changing the keymap.

0
Comment actions Permalink

I think that there is a bug in the statistics.
Mine now says 875 for Syntax Aware Selection, however, I only pressed Ctrl-W 3 times to see how it works.

Is Syntax Aware Selection gathering something else and labelling it as Ctrl-W?

http://youtrack.jetbrains.net/issue/IDEA-76465

0
Comment actions Permalink

What is the shortcut to select word at caret for mac?

0
Comment actions Permalink

Please check here:

1
Comment actions Permalink

No, I have never used it to select text, at least not on purpose!

I find it annoying that you chose CTRL-W for this.

CTRL-W was almost universally acknowledged as the 'close window' combination, later used as 'close tab', on both Mac and Windows.

CTRL-F4 is not particularly convenient because it's a stretch with the left hand.

Big 'thumbs down' from me, I'm afraid.

2
Comment actions Permalink

Looking at the settings, I can't find a keystroke for 'Close active editor tab', only 'Close active tool window tab' (not the same) and 'Close all editor tabs'. Where can I find this?

0
Comment actions Permalink

Here, you can filter by shortcut:

1
Comment actions Permalink

Awesome, thank you!

0
Comment actions Permalink

This is probably the shortcut that I use most

0
Comment actions Permalink

I wonder, in JetBrains statistics, how many of those Ctrl+W are failed attempts to close the window. I know how many times I used Ctrl+W to close window just to find out it doesn't work :)

 

0

Please sign in to leave a comment.