Click here to Skip to main content
15,886,812 members
Articles / Programming Languages / XML

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

Rate me:
Please Sign up or sign in to vote.
4.91/5 (36 votes)
12 Oct 2009CPOL3 min read 185.4K   1.6K   117  
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.

License

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


Written By
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.

Comments and Discussions