Reputation: 442
I do a lot of javascript stuff with eclipse, so "console.log()" is my friend.
is there a way to tell eclipse to insert "console.log()" on a shortcut like cmd + shift + c (e.g.)
Upvotes: 2
Views: 431
Reputation: 2780
This is not a custom shortcut. How about this:
Preference -> JavaScript -> Editor -> Templates -> New
Name: log
Pattern: console.log()
Click [OK]
Open js file
Type l
Use Short cut command for Content Assist(Dialog appears)
Select log
It will insert console.log()
on editor
Upvotes: 4