VSCode cannot find module ‘@angular/core’ or any other modules

My project was generated with Angular CLI version 1.2.6. I can compile the project and it works fine, but I always get error in VSCode telling me: I have attached content of my tsconfig.json file this has been really frustrating for me, spending 2 hours to figure out what is wrong, I have also uninstalled and reinstalled … Read more

Duplicate line in Visual Studio Code

Click File > Preferences > Keyboard Shortcuts: Search for copyLinesDownAction or copyLinesUpAction in your keyboard shortcuts Usually it is SHIFT+ALT + ↓ Update for Ubuntu: It seems that Ubuntu is hiding that shortcut from being seen by VSCode (i.e. it uses it probably by its own). There is an issue about that on GitHub. In order to work in Ubuntu you will have to define your own shortcut, … Read more

Collapse all methods in Visual Studio Code

In Visual Studio Professional, we have a shortcut key, Ctrl + M Ctrl + O to collapse all methods and properties in a class. How can I do a similar thing in Visual Studio Code? I know there are shortcut keys like Ctrl + Shift + [, but this does not meet the needs. Is it possible to get the Visual Studio Professional-like behaviour in Visual Studio … Read more

How do you format code in Visual Studio Code (VSCode)?

The code formatting is available in Visual Studio Code through the following shortcuts: On Windows Shift + Alt + F On Mac Shift + Option + F On Linux Ctrl + Shift + I Alternatively, you can find the shortcut, as well as other shortcuts, through the ‘Command Palette’ provided in the editor with Ctrl +Shift+ P (or Command + Shift + P on Mac), and then searching for format document. For unsaved snippets Open command palette (Win: F1 or Ctrl+Shift+P) Find ‘Change Language … Read more

What are the differences between Visual Studio Code and Visual Studio?

Visual Studio (full version) is a “full-featured” and “convenient” development environment. Visual Studio (free “Express” versions – only until 2017) are feature-centered and simplified versions of the full version. Feature-centered meaning that there are different versions (Visual Studio Web Developer, Visual Studio C#, etc.) depending on your goal. Visual Studio (free Community edition – since 2015) is a … Read more

What are the differences between Visual Studio Code and Visual Studio?

Visual Studio (full version) is a “full-featured” and “convenient” development environment. Visual Studio (free “Express” versions – only until 2017) are feature-centered and simplified versions of the full version. Feature-centered meaning that there are different versions (Visual Studio Web Developer, Visual Studio C#, etc.) depending on your goal. Visual Studio (free Community edition – since 2015) is a … Read more

What are the differences between Visual Studio Code and Visual Studio?

Visual Studio (full version) is a “full-featured” and “convenient” development environment. Visual Studio (free “Express” versions – only until 2017) are feature-centered and simplified versions of the full version. Feature-centered meaning that there are different versions (Visual Studio Web Developer, Visual Studio C#, etc.) depending on your goal. Visual Studio (free Community edition – since … Read more