Questions tagged [region]

Can refer to many different things depending on the use of other tags with it.

702 questions
171
votes
8 answers

sql server #region

can i create regions in sql server editor (like #region and #endregion in C#) ?
Rauf
  • 10,916
  • 19
  • 67
  • 115
64
votes
10 answers

Regions In ASP.NET Views?

I am making an ASP.NET MVC application with the razor engine. And I was wondering if it's possible to use Regions in a view. something like: #region blabla

@Model.Name

...

#endregion This does not work. Is there an…
Velter
  • 1,772
  • 1
  • 13
  • 18
62
votes
8 answers

Where can I find a list of language + region codes?

I have googled (well, DuckDuckGo'ed, actually) till I'm blue in the face, but cannot find a list of language codes of the type en-GB or fr-CA anywhere. There are excellent resources about the components, in particular the W3C I18n page, but I was…
Dɑvïd
  • 1,849
  • 2
  • 15
  • 23
58
votes
5 answers

Are S3 buckets region specific?

When we go to S3 in AWS console in "Global" option it shows "S3 does not require region selection." But when we create new bucket there it asks for Region ! So are S3 buckets region specific ?
Ashish Karpe
  • 3,189
  • 4
  • 30
  • 49
47
votes
3 answers

How do I access the contents of the current region in Emacs Lisp?

I want to access the contents of the current region as a string within a function. For example: (concat "stringa" (get-region-as-string) "stringb") Thanks Ed
Singletoned
  • 4,937
  • 3
  • 28
  • 32
46
votes
1 answer

How to read "List Separator" settings from Regional configuration of control panel?

I'm making multi culture plugin for MS Word,Excel where I need to identify setting value provided in Regional Settings under "List Separator" Option, how can I read using C# ? This List separator is later on being used to construct Excel formulas,…
shahjapan
  • 11,781
  • 21
  • 66
  • 98
41
votes
7 answers

removing #region

I had to take over a c# project. The guy who developed the software in the first place was deeply in love with #region because he wrapped everything with regions. It makes me almost crazy and I was looking for a tool or addon to remove all #region…
gsharp
  • 24,609
  • 20
  • 78
  • 122
37
votes
2 answers

Vim spellcheck not always working in .tex file. Check region in Vim

I use Vim to write my .tex files, but I am having trouble with the spell checker in Vim. Sometimes it does not check the words, and I think that it might be for the following reason. Since Vim is clearly not supposed to check all of the words in…
Kristian
  • 1,337
  • 1
  • 12
  • 18
36
votes
9 answers

Using aws cli, what is best way to determine the current region

Interactively, I can use "aws configure" to change or see the default region. Is there a "pwd" like function, documented or not that allows me to determine or confirm the current region mid-script ? Even if AWS_DEFAULT_REGION is not defined ? I want…
mckenzm
  • 1,001
  • 1
  • 8
  • 15
33
votes
4 answers

#region analogue for eclipse

can somebody tell me, is there an analogue of a Visual Studio #region feature for Eclipse IDE ? I really need this magic! :)
fanat
  • 385
  • 1
  • 3
  • 8
31
votes
4 answers

How to configure Visual Studio to collapse all regions by default?

When I open a code file in a new code window, I press Ctrl+M,O to collapse everything there. As far as I know this can be done by default, without need to press anything every time. I think I did it once, but can't remember where was this option…
Ivan
  • 59,167
  • 87
  • 235
  • 370
30
votes
9 answers

Is there #Region code for HTML

In VB and C# there are #Region ... #endRegion and have it collapsable. Is there a similar way to do this in HTML? Right now I just have comments blocking where the different elements are on my HTML page, but I would like to have a single collapse…
Jim
  • 3,083
  • 9
  • 30
  • 47
27
votes
9 answers

Does Sublime Text 2 have the ability to region code similar to Visual Studio?

In Visual Studio you can minimize huge chunks of code using regions; they essentially just surround the code and minimize it in the window. Does Sublime have a feature similar to this?
piperchester
  • 1,176
  • 2
  • 14
  • 25
24
votes
2 answers

NSLocale preferredLanguages objectAtIndex:0 always return "en"

Simulator's language already changed to Japanese, why [[NSLocale preferredLanguages] objectAtIndex:0] always return "en"? Neither preferred language nor region is related to "en", where does "en" come from? Tried to get [[NSLocale…
S1U
  • 825
  • 1
  • 14
  • 23
23
votes
7 answers

Naming Convention for State / Region / Province

I am building a class that represents a US State or Canadian Province. What should the class be called? Some ideas: Region: Problem with this is that .Net has a RegionInfo class that uses the term Region to represent a country (and not a State or…
Alex Czarto
  • 3,031
  • 4
  • 25
  • 27
1
2 3
46 47