为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: ...
随机推荐
- MongoDB的Python客户端PyMongo(转)
原文:https://serholiu.com/python-mongodb 这几天在学习Python Web开发,于是做准备做一个博客来练练手,当然,只是练手的,博客界有WordPress这样的好玩 ...
- socketserver模块、MySQL(数据库、数据表的操作)
一.socketserver实现并发 基于tcp的套接字,关键就是两个循环,一个链接循环,一个通信循环. socketserver模块中分两大类:server类(解决链接问题)和request类(解决 ...
- 002-es6字符串扩展
1.字符串扩展 参考地址:http://es6.ruanyifeng.com/#docs/string 1.1.codePointAt() JavaScript 内部,字符以 UTF-16 的格式储存 ...
- Nodejs关闭windows服务进程
1.根据端口号,查询进程信息命令: netstat -aon | findstr "端口号" 2.根据pid杀死进程命令: taskkill /F /pid 进程号 完整代码: c ...
- MTK平台环境搭建---Ubuntu Linux 下执行sudo apt-get install提示“现在没有可用的软件包……
问题描述: sudo apt-get install openssh-server 正在读取软件包列表... 完成正在分析软件包的依赖关系树 Reading state information... ...
- 小知识:pyhon的作用域
http://www.cnblogs.com/wupeiqi/p/5649402.html 五句话搞定JavaScript作用域 从JavaScript == pyhon 作用域几乎一致 __ ...
- Python基础总结(字符串常用,数字类型转换,基本运算符与流程控制)
一.字符串常用操作 #Python strip() 方法用于移除字符串头尾指定的字符(默认为空格) name='*egon**' print(name.strip('*'))#移除 name 变量对应 ...
- 通过SSRS创建动态分组报表的方法!
SSRS是微软专门的报表开发工具,对于一般高级用户(非专业开发人员)可以通过SQL Server Report Builder创建,可以把制作好的发布在单独部署的SQL Server Reportin ...
- 199. Binary Tree Right Side View -----层序遍历
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nod ...
- Kattis - wheretolive 【数学--求质心】
Kattis - wheretolive [数学] Description Moving to a new town can be difficult. Finding a good place to ...