Top "Curly-braces" questions

The symbols "{" and "}", commonly used in programming languages.

C# String.Format with Curly Bracket in string

Possible Duplicate: Escape curly brace '{' in String.Format c# has a String.Format method that allows you to …

c# string-formatting curly-braces
Format Curly Braces on Same Line in C++ VSCode

I'm using the C++ Extension for VSCode (Visual Studio Code). Currently, I have the setting "C_Cpp.clang_format_formatOnSave" …

c++ format visual-studio-code curly-braces
curly braces when define array

Regards to the following code: int[] to = new int[] { text }; I understand it tries to define an array of integer, …

java arrays curly-braces
C# Switch statement with/without curly brackets.... what's the difference?

Has C# always permitted you to omit curly brackets inside a switch() statement between the case: statements? What is the …

c# switch-statement curly-braces
Curly braces inside JavaScript arguments for functions

What do the curly braces surrounding JavaScript arguments for functions do? var port = chrome.extension.connect({name: "testing"}); port.postMessage({…

javascript function arguments curly-braces
Why does Golang enforce curly bracket to not be on the next line?

correct: if(true) { } incorrect: if(true) { } Why is this style enforced, does it have something to do with the language …

coding-style go curly-braces
Should I use curly brackets or concatenate variables within strings?

Is there an advantage or disadvantage to concatenating variables within strings or using curly braces instead? Concatenated: $greeting = "Welcome, " . $name . "!"; …

php concatenation curly-braces
How to surround code by curly braces in IntelliJ IDEA?

How to surround code by curly braces in IntelliJ IDEA? Is there any keyboard-shortcut for such operation?

intellij-idea keyboard-shortcuts curly-braces
'break' statement when using curly braces in switch-case

I use curly braces with all of my switch case statements in C/Objective-C/C++ I had not, until a …

c coding-style curly-braces switch-statement
Replacing Text Inside of Curley Braces JavaScript

I am trying to use JavaScript to dynamically replace content inside of curly braces. Here is an example of my …

javascript replace match curly-braces dynamic-variables