![]() ![]() From time to time Sublime Text just freeze. I notice one small thing, which irritates me a lot. But after some time, when my projects started to grow and everything was running in the Docker containers, something changed. Why I don’t use Sublime Text anymore?Īs I told you in the beginning, I liked Sublime Text. Today, I will tell you more about this tool. I found Visual Studio Code - free, built on an open-source text editor. But after some time, Sublime Text didn’t fit me as well as at the beginning anymore. For a very long time, I was satisfied with this text editor. That’s it for this week.Some time ago, I was using Sublime Text Editor for my programming work. VS Code also intelligently lets you know that if the keybinding you choose is already in use or not so you don’t overwrite something that is already in use. you can search for whatever action you wish to change and if you double click on it, a modal will appear and you can enter the keyboard shortcut you wish to use. If you open Preferences: Open Keyboard Shortcuts in the command palette or open the cog in the bottom left corner of VS Code and click “Keyboard Shortcuts”, you will see a table similar to the one at the top of this post. If you don’t prefer a keybinding VS Code has by default, you can change it to whatever you wish. The only one that differs is the git view which is accessible by ctrl+shift+g on all operating systems. if you press cmd/ctrl+ shift + the first letter or letter you expect, it will open the view: Switching Sidebar viewsĪll of the default sidebar views are easily accessible by the keyboard using a fairly simple mnemonic. If you have a split editor, it will keep those splits open in zen mode which can be useful at times, but a personal feature request I would like to see in VS Code is a zen mode with only one editor visible. It gets rid of the sidebar, tabs, goes fullscreen, and pushes everything away to allow for a distraction free environment. When wanting to get into the zone, VS Code’s native zen mode will help out with such. If you wan’t to add a cursor a line above or below where the current cursor is placed, press cmd+opt+up/down or ctrl+alt+up/down to insert the cursors. ![]() ![]() VS Code allows usage of having multiple cursors across lines so you can modify code in multiple places at once. Adding cursors above & below - cmd/ctrl + opt/alt + up/down arrow For more info, head over to the August 19 Weekly digest post for more info. For large-scale projects, being able to open a file by starting to type in the first few letters and then selecting an option in a panel similar to the command palette makes browsing a project extremely fast. File Palette: cmd/ctrl+pĪ few weeks ago, I mentioned this keyboard shortcut of opening a file picker. As well, on the right side of any action, if it has a mapped keybinding, it will present it to you.įor things you use frequently including a majority of things that will be discussed later in this article, learning those keyboard shortcuts will make it much easier rather than searching for it time and time again. Start typing whatever you wish to do and it will appear in the search results. Absolutely any action you can do with a mouse is actionable through the command palette. One of the most powerful keyboard shortcuts is to open the command palette with ctrl/cmd + shift + p. ![]() Just as a note, a lot of keyboard shortcuts which use the cmd key on MacOS are mapped to the control key on Windows and Linux so I will be using either style throughout the rest of the article. Switching to VS Code, it is more visually based, but as I show here, the majority of the editor can be controlled with keyboard shortcuts. I used Vim previously before switching to VS Code and the Vim philosophy is to continually use keyboard shortcuts to make programming much faster as you become more advanced in Vim. Adding cursors above & below - cmd/ctrl + opt/alt + up/down arrow.Command Palette: cmd/ctrl+shift+p or F1.Today, I want to go into how you can control the majority if not all of your editor using the keyboard alone. VS Code has many ways to control the editor through menus, the keyboard, panels in the sidebar, and many more. Top keyboard shortcuts to remember in VS Code Septem3 minutes to read ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |