![]() Some keyboards require different ways to write things like braces and similar. Quite often shortcuts like Ctrl + F (Quick Find) shortcut stop working when Resharper is first installed on a PC with non-US default keyboard. But sometimes it stops playing well with Visual Studio keyboard shortcuts. The improved IntelliSense features and automatic using statements are themselves worth having it installed. Add a new line entry for "files.Let me say this – ReSharper is a wonderful and almost indespesable tool for C# development.Looking to have Markdown support in newly created files, set your default language to markdown! Add a new line entry for: "deLens": false, and save.Out of the box, Code Lens is turned on for. to Alt+Enter.Īdditional Customizations Disabling Code Lens Find (Quick Fix…) and change it from Ctrl+.Find (Refactor…) and change it from Alt+.Find (Rename Symbol) and change it from F2 to Ctrl+R, R.Open up the keyboard shortcuts ( Ctrl+K, Ctrl+S).Here’s some recommended changes from ReSharper: There are several refactoring hotkeys in VSC that work, but almost all of them use the F-keys, which, to me, feels awkward. It takes a bit of time to get used to the menu popping, but, it’s not too bad and in C#, the syntax highlighting is very similar to Resharper (landing your cursor on the highlighted type). and if you’re in a C# file, it’ll be properties, methods, and constructors. For example, if you’re in a markdown file, it’ll be formatting, tables, etc. Now, when you press that, you should receive context-aware code snippets. NOTE: Don’t change insertSnippet (make sure it’s got the editor.action.Find and provide it a keybinding (I used Alt+Insert for mine).VSC has a similar “insert snippet” functionality. Generate CodeĪnother functionality that I for granted with Resharper was being able to generate constructors, properties, and overrides with Alt+Insert. It does “okay” at things like C# and HTML, but does some really weird things to JavaScript. Just be aware that the formatter requires the language library to understand how to format a document. This hotkey is the same across platforms, Ctrl+K, Ctrl+F. net core project, it operates VERY similar to Go To Everything showing everything from methods, classes, and properties.Ĭtrl+P - Quick open - Quickly sort through and find all physical files in your project and open them.Ĭtrl+Shift+P - All commands - The default hotkey that most people starting out with VSC use, but gives you access to all of VSC’s core commands (aka: you’ve forgotten a keybind). For Markdown files, since the default symbol is a #, it shows all the headlines in your project. Go To Everything is one of my favorite commands in ReSharper, but, unfortunately there isn’t an “all in one” menu of files, symbols, and such in VSC.Ĭtrl+T - Open symbol by name - This one varies by the language library of the file you’re using. NOTE: This also solves a problem that’s been plaguing VSC Insider builds that Ctrl+ doesn’t work due to a mismatch in keyboard types.Edit each of these to remove the Ctrl+ requirement. You could also replace with Ctrl+U if you don’t use cursorUndo (which moves your cursor back where it was.)įind cursorColumnSelect and note that they are Ctrl+Shift+Alt+.Open up the keyboard shortcuts ( Ctrl+K, Ctrl+S).įind and replace this with Ctrl+D (my preferred for “duplicate”). Unfortunately, the expected keyboard shortcuts of Alt+Shift+Up Arrow and Alt+Shift+Down Arrow duplicate rows… another unfortunate default keybind. Multi-Editįor some reason, the default way to navigate in multi-edit mode is via the mouse or a “hold all the keys” combo. Here’s a quick rundown of customizations that have made the transiton easier for me. However, there’s been a few growing pains around my love of JetBrains ReSharper and the hotkeys that it uses. The add-on support of VSC is excellent and, so far, the performance is hands above Visual Studio (no more coffee breaks while the app starts and loads a project). For the past several months, I’ve been slowly migrating more projects to languages and frameworks that fit better in Visual Studio Code (VSC) vs. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |