Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebStorm-like version control in Visual Studio Code

I've mostly switched to Visual Studio Code from WebStorm for my Node.js development.

For the most part, I'm able to do everything in VSCode, however I find that the VCS implemented in VSCode is lacking compared to WebStorm's.

In particular, I find WebStorm's conflict resolution when rebasing feature branches much more user friendly.

And so I was wondering if there is anything equivalent to WebStorm's 'VCS -> Git -> Resolve Conflicts...' feature in VSCode.

like image 905
jluong Avatar asked Jul 07 '17 10:07

jluong


People also ask

Does VS code have version control?

Version control in VS Code In this tutorial, we will learn how to use the basics of Git version control in Visual Studio Code. For more information about integrated Git support, including how to work with remote repositories, read on in the related resources section below.

Is WebStorm better than VSC?

WebStorm is generally more efficient at refactoring and testing JavaScript and JavaScript-based code (such as TypeScript). Refactoring optimizes code for efficiency, while unit testing ensures product quality. VS Code still provides these features — but they aren't tailored to JavaScript.

Is Vscode faster than WebStorm?

Personally, I feel like Visual Studio Code is faster and more enjoyable to use, but requires massive configuration to become a powerful tool.

Is JetBrains better than VS code?

Both IDE environments provide a very solid debugging environment but, I must say that JetBrains edges out VS Code again here by just a little bit.


1 Answers

There is no such feature for VS code. But you can install some git extensions to view and resolve conflict files easily.

Such as you can install the extension Git Lens, and when you open conflict files -> click Toggle File Blame, there will shows which lines were you committed and which lines are new add, then you can modify with the what you need.

enter image description here

Or you can use Visual studio instead (VS has the resolve conflicts feature similar as webstorm). In Team explorer -> Branches -> select the branch you need to rebase -> rebase -> IF there has conflicts -> click conflicts -> open a conflict file -> Merge.

enter image description here enter image description here enter image description here

In the merge window, you can select the version you want to use -> add changes you need in result window -> Accept Merge -> view changes -> enter message -> commit.

enter image description here

like image 83
Marina Liu Avatar answered Oct 21 '22 18:10

Marina Liu