Most likely he has a custom Live Template configured that expands fun with Tab into:
function () {
}
The template may look like this:
function () {
}
Where stands for the final cursor position after expanding.
Most likely he has a custom Live Template configured that expands fun with Tab into:
function () {
}
The template may look like this:
function () {
}
Where stands for the final cursor position after expanding.
You should look into Live Templates feature of IntelliJ. He could have created his own template for this.
How can I move forward or backwards in IntelliJ more efficiently?
Moving from Webstorm. Two features I miss (maybe there's a setting that can help?).
Please try rsf - it creates a code like
import React from 'react';
function Func(props) {
return (<div></div>);
}
export default Func;

I use the rsc live template a lot for new components.
This creates code like:
import React from 'react';
const MyComponent = () => {
return (
<div>
</div>
);
};
export default MyComponent;
Apart from that I created my own live template in the JavaScript category for creating arrow functions to save even more time, which creates code like:
const myFunction = () => {
};
Just add a new Live Template under the JavaScript category with this template text:
const $1$ = () => {
$END$
};
And make sure to set applicable in to JavaScript and TypeScript and select the checkboxes for:
- statement
- top level statement