Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7738721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:20:25+00:00 2026-06-01T08:20:25+00:00

I have some transliteration tables in code that are formated to make it easier

  • 0

I have some transliteration tables in code that are formated to make it easier to see pairs, simplified example :

  oldChar = new string[] { "Æ",  "æ",  "Å", "å", "Ä", "ä", "Ø", "ø", "Ö", "ö" };
  newChar = new string[] { "AE", "ae", "A", "a", "A", "a", "O", "o", "O", "o" };

and as a habit I am often using Visual studio Format Document command, and naturally that command turn this piece of code into this :

  oldChar = new string[] { "Æ", "æ", "Å", "å", "Ä", "ä", "Ø", "ø", "Ö", "ö" };
  newChar = new string[] { "AE", "ae", "A", "a", "A", "a", "O", "o", "O", "o" };

can I tell it to leave this part alone, for region perhaps ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T08:20:27+00:00Added an answer on June 1, 2026 at 8:20 am

    Unfortunately no you can’t. The format command either works against the entire document or a selection of text. It can’t be told to format and exclude a particular section.

    Couple of really hacky options I thought of

    • Comment out the lines, format, the uncomment
    • Write a macro to format the selection above, then below
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code that can convert a single color in a template image
I have some code that watches the event log for entry written events and
Have some code: using (var ctx = new testDataContext()) { var options = new
I have some code in jQuery that iterate through children in div using each().
I have some c# code that uses the Microsoft Scripting Control to evaluate some
I have some Haskell code that does work correctly on an infinite list, but
I have some code that acquires a value for an enum: StringUtils.isEmpty(getEnumMember().value()); The supporting
I have some perl code that looks something like this: my @array = map
I have some UI in VB 2005 that looks great in XP Style, but
I have some code for starting a thread on the .NET CF 2.0: ThreadStart

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.