highlighting multiline code using shortcut key

Answered

In the below code from "textLine" to " .count(Materialized.as("Counts"));" its the single line of code broken into multiple lines. How to highlight these 6 lines with shortcut key.


public Topology createTopology(){
StreamsBuilder builder = new StreamsBuilder();

KStream<String,String> textLines = builder.stream("word");

textLines
.mapValues(wordLines -> wordLines.toLowerCase())
.flatMapValues(textLine -> Arrays.asList(textLine.split(" ")))
.selectKey((key, word) -> word)
.groupByKey()
.count(Materialized.as("Counts"));



}

 

0
1 comment

It depends on your use-case.

If you want to drag this chaind method calls, you can use "Move statement Up/Down" action (Cmd+Shift+Up/Bottom)

You can also use "Extend selection" action while you are at the end of the chained call (Alt+Up) to just highlight the whole statement. 

0

Please sign in to leave a comment.