Forum Controls
Spotlight Features

The Rich Engineering Heritage Behind Dependency Injection

Andrew McVeigh takes us on a tour of the rich heritage behind dependency injection, what it represents, and tells us why its here to stay.

NetBeans 6: Matisse Updates

NetBeans 6 delivers great updates to the Matisse GUI builder. Spend a few minutes with Roman Strobl and get an expert briefing on what's new and what has changed.

Introduction to Groovy Part 3

In this, the third and final installation of Andres' Introduction to Groovy series, you learn about how Groovy handles variable numbers of arguments, named parameters, currying, and more about Groovy operators. Including, some new operators.

Easier Custom Components with Swing Fuse

Swing Fuse (actually just Fuse), is a framework designed to make it easier to create your own custom desktop components. In this article, Daniel Spiewak shows you how to get started and provides sample source code you can download.

Benchmark Analysis: Guice vs Spring

Willam Louth shows how he uses JXInsight Probes to investigate probable performance issues with code bases that he is not familiar with. He also highlights possible pitfalls in creating a benchmark, as well as in the analysis of results.
Replies: 3 - Pages: 1  
Threads: [ Previous | Next ]
  Click to reply to this thread Reply

IntelliJ IDEA: Express code commenting

At 9:10 AM on Dec 18, 2007, Alexander Morozov wrote:

We've collected some statistics about the frequency of applying IntelliJ IDEA features in the developers' daily routine. And here we'll mark one of the popular ones out that surely improves your productivity and saves a lot of time.

While working on your projects, you definitely comment and uncomment some parts of code rather often. Making this action faster would be useful for sure, so here are several useful IntelliJ IDEA shortcuts you may not know about, to deal with it.
For example, we have the following code:



To comment the current line, press Ctrl + / .
If we want to comment an arbitrary piece of code, we should select it. In IntelliJ IDEA we use a single shortcut ( Ctrl + W ) pressed sequentially to select a logical code block at once.



Now, to quickly comment the selected block we just use Ctrl + Shift + / shortcut.



Comments are inserted depending on your code style settings.
To uncomment a line or a block of code use Ctrl + / or Ctrl + Shift + / shortcut respectively.
1 . At 10:01 PM on Dec 19, 2007, jerry wrote:
  Click to reply to this thread Reply

Re: IntelliJ IDEA: Express code commenting

Great tips, thanks

Would you like to give me some tricks about how to "generate element comment" just as eclipse?
java developer
2 . At 6:37 AM on Dec 29, 2007, M!k3 wrote:
  Click to reply to this thread Reply

Re: IntelliJ IDEA: Express code commenting

Type /** before a method and hit Enter.
3 . At 9:45 PM on Jan 29, 2008, groovy wrote:
  Click to reply to this thread Reply

Re: IntelliJ IDEA: Express code commenting

Nice tip, I'm working on it. Thanks.
Java Tip

thread.rss_message