https://visualstudiogallery.msdn.microsoft.com/ad686131-47d4-4c13-ada2-5b1a9019fb6f

About

This is a small add-in for Visual Studio 2008. It searches and highlights substrings that are currently selected in a text editor. As a bonus, it works for Output, Command and Immediate windows too.

Project home: https://github.com/mnasyrov/wordlight

Usage

It is pretty simply: when you selects a text, the add-in highlights all occurrences in a current document.

There is a new "Freeze search" feature: you can freeze up to three search results in special mark groups, that stay during text editing. Freezing is called by next hotkeys (by default): Ctrl+`, Ctrl+1 and Ctrl+2 for three groups. For example: you select a text, and all its occurences are marked by pink color automatically. Then you press Ctrl+`, and these marks moved to the blue group. To clear a freezing group just press a hotkey when nothing is selected.

Installation

  1. Unpack files to an folder for add-ins of your visual studio.
  2. Restart the studio.

Usually, the folder is placed in "C:\Users\%UserName%\Documents\Visual Studio 2008" (for Win7) or "C:\Documents and Settings\%UserName%\My Documents\Visual Studio 2008\Addins" (for WinXP). It can be checked by "Add-in file paths" settings of the studio (menu Tools > Options > Environment > Add-in/Macros Security).

Please note, the add-in requires installed .NET Framework 3.5 to run.

Settings

You can change settings of the add-in by a command "WordLight settings..." under the "Tools" menu.

  • Colors of marks for occurences;
  • Hotkeys to freeze a search;
  • Enable/disable case sensitive searching.
  • Matching only whole words by search.

Tips and tricks

Visual Studio 2008 has various shortcut keys for text search, which look nice with WordLight:

  • Ctrl+Shift+W - selects a word at a text cursor, I recommend to remap it to Ctrl+W;
  • Ctrl+F - opens a Find dialog and puts a word at a text cursor into a search field;
  • F3 / Shift+F3 - go to a next/previous occurrence of a search text;
  • Ctrl+D - puts a word at a text cursor into a Find combo-box at a toolbar;
  • Ctrl+F3 / Ctrl+Shift+F3 - puts a word at a text cursor into the Find combo-box and go to a next/previous its occurrence;
  • Ctrl+I - Incremental search: waits for your input and searches as you type a text.

WordLight: highlights all occurrences of a selected text for VS2008的更多相关文章

  1. jQuery get selected text from SELECT (or DROPDOWN) list box

    Most of the time in JavaScript we want to do following things with Select (or dropdown) list box. – ...

  2. js get selected text

    js get selected text https://stackoverflow.com/questions/3170648/how-to-get-javascript-select-boxs-s ...

  3. Copy Selected Text from any window

    https://social.msdn.microsoft.com/Forums/windows/en-US/1dc356e6-9441-44de-9eda-247003fa6ef5/copy-sel ...

  4. get the text value of a selected option.

    <select id="myselect"> <option value="1">Mr</option> <optio ...

  5. Sublime Text 2配置文件详解

    Sublime Text 2是那种让人会一眼就爱上的编辑器,不仅GUI让人眼前一亮,功能更是没的说,拓展性目前来说也完全够用了,网上介绍软件的文章和推荐插件的文章也不少,而且很不错,大家可以去找找自己 ...

  6. SUBLIME TEXT 2 设置文件详解

    SUBLIME TEXT 2 设置文件详解 Preferences.sublime-settings文件: // While you can edit this file, it’s best to ...

  7. [转]Sublime Text 2 设置文件详解

    Sublime Text 2是那种让人会一眼就爱上的编辑器,不仅GUI让人眼前一亮,功能更是没的说,拓展性目前来说也完全够用了,网上介绍软件的文章和推荐插件的文章也不少,而且很不错,大家可以去找找自己 ...

  8. Sublime Text 设置文件详解

     Sublime Text 2是那种让人会一眼就爱上的编辑器,不仅GUI让人眼前一亮,功能更是没的说,拓展性目前来说也完全够用了,网上介绍软件的文章和推荐插件的文章也不少,而且很不错,大家可以去找找自 ...

  9. Subline Text默认设置文件Preferences.sublime-settings—Default详解

    Subline Text中,点击Preferences,选择Settings - Default 全部属性解析 // While you can edit this file, it's best t ...

随机推荐

  1. vijosP1447 开关灯泡

    vijosP1447 开关灯泡 链接:https://vijos.org/p/1447 [思路] 数学+高精度. 分析题目:题中有言,i时刻将其所有倍数的灯熄灭,由此得知一个数有多少个倍数就会被操作多 ...

  2. 教程-Delphi各种退出break,continue, exit,abort, halt, runerror

    delphi中表示跳出的有break,continue, exit,abort, halt, runerror.1.break 强制退出循环(只能放在循环中),用于从For语句,while语句或rep ...

  3. mongodb日志服务器方案

    描述 目前要做的是多台服务器上的程序日志(如订购日志,交易日志,接口是否成功等)汇总到1个mongodb服务器,每日大约1亿的量,然后有图表实时展现,和报表展现日志信息 注意: 没有把所有日志放入1张 ...

  4. sql server 分布式事务

    使用分布式事务刚好可以解决集群同时更新多台SQL SERVER数据库,要么全部成功,要么全部回滚的需要. 原来微软早考虑到此方面的问题了. 下面背书,贴出微软官网上面的帮助文档: 分布式事务跨越两个或 ...

  5. response对象详解

    (响应 javax.servlet.http.HttpServletResponse) 方法名 说明 addCookie 添加一个Cookie对象 addHeader 添加Http文件指定名字头信息 ...

  6. Android ListFragment实例Demo(自己定义适配器)

    上一篇文章介绍了ListFragment,当中的ListView并没有自己定义适配器,实际上在实际开发中常会用到自己定义适配器,是实现更复杂的列表数据展示. 所以这篇文章添加了自己定义适配器.来进行L ...

  7. Java SE学习之printf 日期转换符

    本文是学习网络上的文章时的总结,感谢大家无私的分享. System.out.printf()方法能够对日期做处理输出. 相应列表 转换符 类型 举例 c 完整的日期和时间 Mon Feb 09 18: ...

  8. Static NAT with iptables on Linux

    本文的名字取的比较有意义,因为本文并不是真的要讨论如何在Linux上使用iptables实现static nat!之所以这么命名本文,是想引起别人的注意,因为中文资料,以及国内的搜索引擎,基本上没有人 ...

  9. jquery选择器及效率问题

    $('p2') //选择名字 $('.class') //选择class $('#id') //选择id $('#id li') //所有id=”id”标签内的li标签 $(“#id”).find(“ ...

  10. [HTTPS] MAN IN THE MIDDLE (MITM)

    If you go a public caffee shop, they have free wifi. How could you make sure your infomration cannot ...