Click here to Skip to main content
13,292,913 members (89,171 online)
Click here to Skip to main content


117 bookmarked
Posted 12 Jun 2008

.NET Regular Expressions Find and Replace Add-In for Visual Studio 2008

, 12 Oct 2009
A .NET Regular Expressions Find and Replace add-in for Visual Studio 2008
using System;
using System.Collections.Generic;
using System.Text;

namespace RegexFindAndReplace
    internal class Strings
        public const string REGEX_FIND_AND_REPLACE = "Regex Find and Replace";
        public const string REGEX_FIND_IN_FILES = "Regex Find in Files";
        public const string REGEX_REPLACE_IN_FILES = "Regex Replace in Files";
        public const string CURRENT_DOCUMENT = "Current Document";
        public const string ALL_OPEN_DOCUMENTS = "All Open Documents";
        public const string CURRENT_PROJECT = "Current Project";
        public const string ENTIRE_SOLUTION = "Entire Solution";
        public const string SELECTION = "Selection";

        static internal class Settings
            public const string DIALOG_TYPE = "DialogType";
            public const string SELECTED_REGEX = "SelectedRegex";
            public const string SELECTED_REPLACEMENT = "SelectedReplacement";
            public const string SELECTED_LOOK_IN = "SelectedLookIn";
            public const string INCLUDE_SUB_DIRECTORIES = "IncludeSubDirectories";
            public const string REGEX_OPTIONS = "RegexOptions";
            public const string SELECTED_FILE_TYPES = "SelectedFileTypes";
            public const string DISPLAY_FILE_NAMES_ONLY = "DisplayFileNamesOnly";
            public const string KEEP_MODIFIED_FILES_OPEN = "KeepModifiedFilesOpen";
            public const string MATCH_CONTEXT_BEFORE_LINE_COUNT = "MatchContextBeforeLineCount";
            public const string MATCH_CONTEXT_AFTER_LINE_COUNT = "MatchContextAfterLineCount";

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer
United States United States
I am a software developer currently working in Salt Lake City, Utah. I work primarily with C# for my job, but I mess around with C, Perl, and Windows PowerShell for fun.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.171207.1 | Last Updated 12 Oct 2009
Article Copyright 2008 by jhillman
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid