![]() To format your current file, right click and select Format Document, or to turn on automatic formatting when you save your files go to Settings and search for 'format on save' and tick the checkbox. Prettier is a lifesaver because it automatically formats your code! You can download it as an extension on VS Code, and it will run your settings that you configure in the application (go to Settings and search for 'Prettier'). This is especially useful when working on a group project so you can see at a glance when the last changes were made, who made them, and the relevant commit message. What I do use it for is the Git blame feature, which annotates the most recent commit history for each line in your files. This extension is Git supercharged for your editor with loads of features that I don't yet know how to use. Search for the file you want the relative path for: Use the shortcut to bring up the file search (Windows Ctrl+Shift+H, Mac Cmd+Shift+H): This is really helpful in a large codebase with lots of nested folders where you have a lot of imports and exports between files, for instance in a React.js project. This extension gives you a shortcut for getting the relative filepath of another file from your current file. This extension colorizes matching opening and closing brackets in your code so you can scope your functions and statements at a glance.Įdit: This article originally linked to Bracket Pair Colorizer v1, thank you to for pointing out in the comments that there is a v2 out there which is faster and more accurate! Relative File path If you are using the Live Share extension, your collaborator's co-authoring credentials appear (they have to be signed in with their GitHub account). ![]()
0 Comments
Leave a Reply. |