All Roads Lead to David

David Koren is many things — a politics junkie, a businessman, a homeopath. And a member of a supper club for far-right conspiracy theorists. If you drive north far along the 405 and should you…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Boot productivity with VScode Tasks.

For project level custom tasks, open .vscode/tasks.json . These tasks are only available in current project.

For user custom tasks, go to command palette (F1), type user tasks . These tasks are available across projects.

This is a common workflow i do daily, so i can’t stand to use mouse to click. Goto tasks.json . The following task defins a simple task that quickly switch to main

I like to prefix my git branches with whou/1016/ , that is my username and the month and date. This way i can quickly organize my branch and never run out of one time branch names such as quickfix bugfix .

Go to your tasks.json , i choose the user level one.

here i define custom task backed by a shell command:

Invoking this by hitting F1 and type run tasks , then pick the Create Branch, which will prompt you for a branch base, prefix it with username and month/date, then create it in a terminal.

Once you are done coding, you need to create PR. VScode GIT extension requires multiple clicks: open git view, open branches, find the right branch, click the create pull request icon.

Thankfully you can go to https://github.com/<owner>/<repo>/pull/<branch-name> and lands in a pull request view or create pull request view.

The following task opens the URL in browser:

Since the tasks can be powered by shell command, the potential is unlimited. You can even write python scripts and invoke it with python... .

Custom tasks fills the gap of quick customization of my IDE, like what i used to do a lot in my emacs.

Add a comment

Related posts:

An extended report of the first Exclusive Design Challenge

I published a much more graphically appealing and much more detailed report of the very first The Good, The Bad, and The Interesting Exclusive Design Challenge. It’s filled with the beautiful…

Web Designing Course In Islamabad Rawalpindi Islamabad

Four months is class work and two months is project base internship. Its depend on you that you want to work with organization or work at home. The student that have no skill and they want to be…

Mystery of the Virus

According to the Encyclopedia Britannica article “Virus”, science knows almost nothing about viruses compared to what there is yet to learn. This is true even though viruses are the majority living…