为Visual Studio添加快捷工具
添加额外工具:
Tools -> External Tools...
1. 添加Git Console
Title: Git Console
Command: C:\Program Files\Git\bin\sh.exe
Arguments: --login
Initial directory: $(ItemDir)
2. 添加Win10的Bash(推荐,安装zsh、antigen或者on-my-zsh以及git后,可以用很多git的alias)
注意:命令行不能直接用%systemroot%\System32\bash.exe,需要找它的源文件。
Title: Bash
Command: C:\Windows\WinSxS\amd64_microsoft-windows-lxss-bash_31bf3856ad364e35_10.0.16299.15_none_62878a822db68b25\bash.exe
Arguments: --login
Initial directory: $(ItemDir)
3. Sublime Text
Title: Sublime Text
Command: "C:\Program Files\Sublime Text 3\sublime_text.exe"
Arguments: $(ItemPath):$(CurLine):$(CurCol)
Initial directory: $(ItemDir)
4. Notepad2
Title: Notepad2
Command: "C:\Program Files\Notepad2\Notepad2.exe"
Arguments: /g $(CurLine),$(CurCol) $(ItemPath)
Initial directory: $(ItemDir)
5. VSCode
Title: VSCode
Command: "C:\Program Files\Microsoft VS Code\Code.exe"
Arguments: -g $(ItemPath):$(CurLine):$(CurCol)
Initial directory: $(ItemDir) Win10 WSL(bash) 配置
~~~~~~~~~~~~~~~~~~~~~~
现在添加删除组件中勾选 Windows Subsystem for Linux
然后运行bash,会提示一个链接,浏览器打开后会出现App Store安装Ubuntu
再次运行bash,等待安装完成。(或者:lxrun /install) 用zsh代替bash
$ sudo apt install zsh vim -y
$ cd ~
$ curl -L git.io/antigen > antigen.zsh
$ vim ~/.antigenrc
source $HOME/antigen.zsh
antigen use oh-my-zsh
antigen bundles <<EOBUNDLES
git
gitfast
git-extras
heroku
sudo
z
history
encode64
zsh-users/zsh-syntax-highlighting
zsh-users/zsh-autosuggestions
zsh-users/zsh-completions
EOBUNDLES
antigen theme clean
antigen apply
$ echo source \$HOME/.antigenrc>~/.zshrc
$ vim ~/.bashrc
在开头输入:
if [ -t 1 ]; then
exec zsh
fi
$ exit
重启运行bash
如果出现警告:zsh compinit: insecure directories, run compaudit for list.
$ chmod -R 755 ~/.antigen
$ chmod -R 755 ~/antigen.zsh
重启运行bash
为Visual Studio添加快捷工具的更多相关文章
- 如何利用 Visual Studio 自带工具提高开发效率
Visual Stuido 是一款强大的Windows 平台集成开发工具,你是否好好地利用了它呢? 显示行号 有些时候(比如错误定位)的时候,显示行号将有利于我们进行快速定位. 如何显示 1. 工具 ...
- 最锋利的Visual Studio Web开发工具扩展:Web Essentials详解
原文:最锋利的Visual Studio Web开发工具扩展:Web Essentials详解 Web Essentials是目前为止见过的最好用的VS扩展工具了,具体功能请待我一一道来. 首先,从E ...
- Visual Studio前端开发工具/扩展
怎么样让Visual Studio更好地编写HTML5, CSS3, JavaScript, jQuery,换句话说就是如何更好地做前端开发.Visual Studio 2010不管是旗舰版还是免费版 ...
- 【翻译】我钟爱的Visual Studio前端开发工具/扩展
原文:[翻译]我钟爱的Visual Studio前端开发工具/扩展 怎么样让Visual Studio更好地编写HTML5, CSS3, JavaScript, jQuery,换句话说就是如何更好地做 ...
- Visual Studio 实用扩展工具
Indent Guides 为每个缩进绘制一条虚线: Highlight all occurrences of selected word 高亮相关代码: Productivity Power Too ...
- Visual Studio 的快捷不能用时候,我们只要选择重置就可以用了。
当发现Visual Studio 的快捷不能用时候,我们只要选择重置就可以用了.
- Visual Studio Command Prompt 工具配置方法
有时候,我们无法找到Visual Studio Command Prompt,需要手动配置 打开 Visual studio2015,选择 "工具"—>"外部工具 ...
- Visual Studio命令行工具
devenv.exe Visual Studio IDE 主程序,位于VS_INSTALL_DIR/Common7/IDE. 本节内容来源:vs2010环境执行devenv /? 启动VS deven ...
- Visual Studio添加dll程序集引用操作步骤
Visual Studio 中添加引用的操作: 在“解决方案资源管理器”中,先右击项目图标,在弹出菜单选择“添加引用...” 然后在弹出的窗口中选择所要添加的选项,点击确定就可以了. 原文:http: ...
随机推荐
- Python菜鸟之路:Django 分页
Django的分页没有多少需要说的,有一点需要关注,在自定制分页功能的时候,需要通过python代码来生成每一页的a标签链接,这个时候需要关注一点:默认情况下,为了安全考虑,防范XSS攻击,Djang ...
- 原生js实现ajax方法
下面是一个比较完整的Ajax function ajax(){ var ajaxData = { type:arguments[0].type || "GET", url:argu ...
- javascript教程5:--BOM操作
1.BOM 简介 所谓的 BOM 即浏览器对象模型(Browser Object Model).BOM 赋予了 JS 操作浏览器的能力,即 window 操作.DOM 则用于创建删除节点,操作 HTM ...
- 0502-Hystrix保护应用-简介,使用,健康指标等
一.概述 参看地址:https://cloud.spring.io/spring-cloud-static/Edgware.SR3/single/spring-cloud.html#_circuit_ ...
- BeanUtils.copyProperties()
BeanUtils.copyProperties() PropertyUtils.copyProperties() 通过反射将一个对象的值赋值个另外一个对象(前提是对象中属性的名字相同). 后付前 P ...
- Redis三(List操作)
List操作 redis中的List在在内存中按照一个name对应一个List来存储.如图: lpush(name,values) 1 2 3 4 5 6 7 8 # 在name对应的list中添加元 ...
- 快速排序算法C语言版
快速排序(Quicksort)是对冒泡排序的一种改进. 快速排序由C. A. R. Hoare在1962年提出.它的基本思想是:通过一趟排序将要排序的数据分割成独立的两部分,其中一部分的所有数据都比 ...
- Python Static Method
How to define a static method in Python?Demo: #!/usr/bin/python2.7 #coding:utf-8 # FileName: test.py ...
- 转:[NHibernate]视图处理
转自:http://www.cnblogs.com/wolf-sun/p/4082899.html 目录 写在前面 文档与系列文章 视图 一个例子 总结 写在前面 前面的文章主要讲了对物理数据表的操作 ...
- 左连接、右连接、内连接和where
首先可以看下w3school写的关于join的介绍: http://www.w3school.com.cn/sql/sql_join.asp on是关联条件,where是筛选条件 数据库在通过连接两张 ...