console-log-jsEasily insert and comment console.log statements, by M-coder. It's true, there are already a lot of extensions to write console.logs quickly and I have used some. However, as I used it I felt a need to add some small features so that the extension suited me perfectly. Here are some of the available features:
Sample with variables: Sample with object: InstallingThis extension is available for free in the Visual Studio Code Marketplace. UsageWrite console.logs:With cursor over the word or selection:Press Cmd+Shift+L => The output (on a new line) will be: console.log('variable: ', variable); Without selection:Press Cmd+Shift+L => The output (on the same line) will be: console.log(); Comment all console.logs:Press Cmd+Shift+D => This will comment all console.log statements in the current file. Remove all console.logs:Press Cmd+Shift+S => This will remove all console.log statements in the current file. LicenseMIT License |