Create file from code

Given the following code:

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
</body>
</html>


Suppose I insert the tag:
<script src="main.js"></script>

but the file, main.js doesn't exist. Is there a shortcut to create that file without having to right click the project folder and choose new file?
Thanks

0
2 comments

Hi there,

Have you tried Alt+Enter on the file in question (and then do simple and straightforward action from there)?

0

Thanks, that's what I needed.

0

Please sign in to leave a comment.