The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.
Using Microsoft's Visual Studio Code, how do I duplicate a line of code and then move it up and down? The commands your are looking for are editor.
Furthermore, commands editor. I prefer this to the accepted answer, because it only requires one hand to do this and feels way more natural. The accepted answer will probably do it for most people, however Down sits the other side of the keyboard.
The second option feels weird in my opinion. I'd rather use the option where my hand naturally sits on the keyboard, and if its one hand, even better. You'll need to rebind editor. For Ubuntu Use this Intellij Darcula Theme : Extension. If you coming from Sublime Text and do not want to relearn new key binding, you can use this extension for Visual Code Studio.Moving from WebStorm to VSCode
After installing the extension and restarting VS Code your favorite keyboard shortcuts from Sublime Text are now available. Direct line duplication without the clipboard step is proposed by the Contextual Duplicate extension. Now with less duplicate shortcuts in fedora29 all vscode shortcuts for linux must work fine.
For Linux users: I noticed what on Linux you quite an often need to use win key. I noticed that in a few combos now. Learn more. How do I duplicate a line or selection within Visual Studio Code? Ask Question. Asked 4 years, 11 months ago. Active 2 days ago. Viewed k times. Sahan Serasinghe 1, 15 15 silver badges 22 22 bronze badges. Chris Chris 36k 20 20 gold badges silver badges bronze badges. Active Oldest Votes.Comment 4.
I spend a lot of time futzing with editors and IDEs. To be honest, I'm pretty compulsive obsessive about the whole thing. I can watch YouTube videos for hours studying how each works and why people like them.
One question that I really wanted to tackle is "Are there ways in which VS Code is actually better i. The Find window is much better in PyCharm.
I can search for something in order to do a cross-project refactor. As I go through each entry, I don't lose my place in the find results, even if I have to edit the code for a few minutes. Trying to do the same in VS Code is a fairly frustrating experience. If I need to search for something else, I can save the results in a new tab without losing the original search.
This is really important if the refactor takes me a few days, and I need to leave the results open the whole time. I can have a whole "stack" of completely different search results in different tabs.
The Git support in PyCharm is far more complete and advanced.
The rebase flow is incredibly well done, especially when dealing with conflicts. It's well known that rope isn't nearly as good as what PyCharm has built in. An extension written by a third-party developer is no match for something done very well by the company itself at a foundational level. I'll admit that the guy who wrote the Python extension for VS Code just got hired by Microsoft, which is good, but I think my point still stands.
I don't really care that it starts fast. So does Vi. I rarely restart PyCharm, so waiting, let's say, 15 seconds once a week or so is irrelevant when I consider all the time it saves me throughout the day. I don't get excited by VS Code's themes. One good light theme and one good dark theme is really all that matters to me.One of the most primary questions in the minds of a development startup, a beginner, is which language to use.
It goes down in the stack to understand more about different aspects of the IDE, such as, Productivity Performance Extensions and Add-ons Ease of use Learning scope and much more. All these key points are focused toward the development of a software engineer, as he gets to understand how to develop a vital piece of software.
For the time being, I have just started out with Python development.
Before you start asking me, why I did that, Python is amazing. Python is being used for many machine learning libraries. Python is portable just like. However, if you want to upgrade your skills to a professional Python developer, because Python developers also earn, the developer for Visual Studio Code Python extension was hired by Microsoft.
So that was it for basics and introduction. Now the real stuff begins. You can then extend the support to virtual environments and use other IDEs such as Spyder or interactive shells, IPython let's say. But for hardcore Python programming, you need something more than just a text-editor, Python interpreter, and a linter. Both IDEs support basic Python development, autocomplete suggestions, linkers, and extensibility of the IDE to support custom toolchains during development.
Then, I shifted my interests to PyCharm for a while. I cannot afford my machine to go down even for a minute, thus it kept itching deep in my mind to change the IDE. I can afford to go to plain text editor if I have to, but I cannot afford my machine getting stuck. Anyways, that is when I started testing PyCharm vs. They can be given the benefit of the doubt, but one can easily ask for the benefits of long load time. On average, PyCharm has been reported to have an extremely slow load time.
Visual Studio Code, on the other hand, is really fast and loads in less time. The modular approach of Code helps it in the performance race. Moreover, since Visual Studio Code depends heavily on extensions and add-ons, the projects and other libraries do not get loaded until they are needed to be loaded for the developers. TypeScript, Python, Java and other similar libraries load as needed. Such as, when you open a file with type for Java program, your Red Hat Java extension will kick in.
Best Text Editor? Atom vs Sublime vs Visual Studio Code vs Vim
The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. Microsoft recently released Visual Studio Code and I am a little confused about its usage, since Visual Studio has lot of similarities functionally with it. Visual Studio full version is a "full-featured" and "convenient" development environment.
Visual Studio free "Express" versions - only until are feature-centered and simplified versions of the full version. Visual Studio free Community edition - since is a simplified version of the full version and replaces the separated express editions used before For example if you want to create an ASP. There is a separate tutorial for each OS. It's based on Xamarin Studio and lacks support for some older.
NET project types. It does successfully build solutions created in VS VS mac has a more limited UI for example, no customizable toolbar. So for cross-platform work. VS Code may still be preferable. In the latest version of Visual Studio, you can develop cross-platform application without leaving the IDE.
Complementing the previous answers, one big difference between both is that Visual Studio Code comes in a so called "portable" version that does not require full administrative permissions to run on Windows and can be placed in a removable drive for convenience.
Learn more. Ask Question. Asked 4 years, 10 months ago. Active 11 months ago. Viewed k times. Stevoisiak 12k 13 13 gold badges 79 79 silver badges bronze badges.
Aswajith Aswajith 6, 4 4 gold badges 13 13 silver badges 17 17 bronze badges. Express editions still exist even inbut "express" editions are now aimed as light platforms for individual targets i. Even then the official Express download site suggests people really should consider Community - why wouldn't you?
This is another thing which is HOT nowadays for nerds and multi-platform users. It is not even close to Visual Studio. Relevant blog post blogs.
Active Oldest Votes.
I updated the answer by removing "Windows-centered". I think that is easier than adding the supported OSs one by one.
My Thoughts on VS Code vs. WebStorm, PyCharm, IntelliJ
I am in the market for a new IDE but am confused about the overlap between some of Jetbrains' offerings. I am hoping to have a single polyglot IDE for all development. The specific feature missing from IntelliJ IDEA is simplified project creation "Open Directory" used in lighter products as it is not applicable to the IDE that support such a wide range of languages and technologies. It also means that you can't create projects directly from the remote hosts in IDEA.
If you are missing any other feature that is available in ligher products, but is not available in IntelliJ IDEA Ultimate, you are welcome to report it and we'll consider adding it. It means that some features may be already available in the lighter products, but not available in IDEA plug-ins at certain periods, they are added with the plug-in and IDEA updates later.
But here's the rub, sometimes you can't or don't want to wait. For example I want to use the new support for RubyMotion which includes RubyMotion project structure support, setup of rake files, setup of configurations that are hooked to iOS Simulator etc.
Also there are other potential areas where this out of sync issue might bite me again. Would love to only use IntelliJ. As pointed out by the vendor the "Open Directory" functionality not being in IntelliJ is painful. Now for the rub part; I have tried using IntelliJ as my single IDE and have found performance to be terrible compared to the lighter weight versions.
Intellisense is almost useless in IntelliJ compared to WebStorm. The only thing missing is the simplified project setup. Definitely a great question. I've noted this also as a sub question of the choice for versions within IDEa that this link may help to addressGitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub? Sign in to your account. VS Code version: Code 1. Turning HDR off system-wide makes the window look normal again. Same issue with 1. Disabling system-wide HDR affect several other applications and workflows.
I haven't found any workarounds aside from downgrading VS Code back to 1. You can download and run the installer, and it will do an in-place downgrade of VS Code, no need to uninstall or reconfigure settings. Just make sure to temporarily disable auto-update, as otherwise it will upgrade back to 1. Here's a non-HDR photo to partially convey the issue. It's hard to capture the actual darkness levels on my camera.
Or another workaround without downgrade: Set the compatibility mode to windows 7 of Code. I've seen other electron apps fix this problem in the past 2 months. Can you try to reproduce with our nightly insider builds? Seems to be fixed in the insiders build. Any idea when this fix is coming to stable? Got it. Should have mention that this is a duplicate of to make it configurable as a user setting.With so many programming text editors out there today, the seemingly simple task of choosing one suddenly becomes daunting and overwhelming.
While a straightforward answer to the "what is the best text editor for developers? After reading the list of pros and cons, I hope you will have enough information to make a choice that best fits your needs.
Disclaimer : As with any comparison, some of these views are subjective and are mostly based on my personal preferences. That said, I've tried to be as objective as possible. Atom is a relative newcomer to the world of text editors but it's gained huge momentum since it was first released in Let's start by reviewing its main features:. Ability to add additional features to an edit is very important, and this is an area that Atom shines at.
The package manager is installed by default and to make things even better, all packages are hosted on Github. At the time of writing, they had a whopping 6, packages and themes available! Packages are so fundamental to Atom, that core features like Tree View and Settings View are simply pre-installed packages. In general, everything in Atom is rather smooth. Biggest pain point? Figuring out which additional packages need to be installed when starting from scratch.
For example, I like minimap to help me visually skip to parts of a file. I'm someone who often works on a couple of files simultaneously so the ability to set up split pane editing is a must. It's a feature Atom supports nicely. I'm so used to not having it in Sublime that being able to shift things around is a real treat!
Ability to customize an editor to match your development flow and style is essential. Personally, I always need to enable things like "trim whitespaces on save", "save on lost focus of file", both of which are easy to set up and override in Atom.
Overall, I love how configurable Atom is—ability to override settings on a per-file type basis is great! If there's one bone to pick with Atom, it's that at times, it feels slow. Sometimes, opening a file or switching between tabs has enough of a lag to feel painful especially when you're in full swing development action.
When I tried Atom when it was first released, performance was a problem. It has certainly gotten better since, but the frustration is still there. Atom is a great tool, especially for those who want to customize their editor easily, and beyond what others provide. As a web developer, the freedom to tweak, add, and extend your editor gives an incredible feeling of power. I also love its docs. The Atom Flight Manual provides a great starting point for new users.