Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #26533 > unrolled thread

How to configure editing of writing javascript in Visual Studio

Started by"Tony Johansson" <johansson.andersson@telia.com>
First post2015-01-10 13:18 +0100
Last post2015-01-12 06:19 -0800
Articles 3 — 3 participants

Back to article view | Back to comp.lang.javascript


Contents

  How to configure editing of writing javascript in Visual Studio "Tony Johansson" <johansson.andersson@telia.com> - 2015-01-10 13:18 +0100
    Re: How to configure editing of writing javascript in Visual Studio John Harris <niam@jghnorth.org.uk.invalid> - 2015-01-11 11:30 +0000
    Re: How to configure editing of writing javascript in Visual Studio "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-01-12 06:19 -0800

#26533 — How to configure editing of writing javascript in Visual Studio

From"Tony Johansson" <johansson.andersson@telia.com>
Date2015-01-10 13:18 +0100
SubjectHow to configure editing of writing javascript in Visual Studio
Message-ID<m8r5ad$csn$1@dont-email.me>
When I write for example this code the brackets is often repositioned like 
this in Visual Studio
function Rabbit(adjective) {
        this.adjective = adjective;
    }

but if I have written to have the brackets like this they should stay like 
this until I change
function Rabbit(adjective)
{
        this.adjective = adjective;
 }

So can I change in Visual Studio so stay the way I want to have them

//Tony


[toc] | [next] | [standalone]


#26538

FromJohn Harris <niam@jghnorth.org.uk.invalid>
Date2015-01-11 11:30 +0000
Message-ID<5ln4bahkrt3d22qu6kgsm8e3cv3tl61tpm@4ax.com>
In reply to#26533
On Sat, 10 Jan 2015 13:18:31 +0100, "Tony Johansson"
<johansson.andersson@telia.com> wrote:

>When I write for example this code the brackets is often repositioned like 
>this in Visual Studio
>function Rabbit(adjective) {
>        this.adjective = adjective;
>    }
>
>but if I have written to have the brackets like this they should stay like 
>this until I change
>function Rabbit(adjective)
>{
>        this.adjective = adjective;
> }
>
>So can I change in Visual Studio so stay the way I want to have them

Go through all the editor's options looking for one that chooses the
curly bracket style. I don't know if VS has this option, but certainly
several other editors do so it's worth a look.

  John

[toc] | [prev] | [next] | [standalone]


#26555

From"Michael Haufe (TNO)" <tno@thenewobjective.com>
Date2015-01-12 06:19 -0800
Message-ID<f652a429-ea89-4729-a47f-aa964e8cca9a@googlegroups.com>
In reply to#26533
On Saturday, January 10, 2015 at 9:32:27 PM UTC-6, Tony Johansson wrote:
> When I write for example this code the brackets is often repositioned like 
> this in Visual Studio
> function Rabbit(adjective) {
>         this.adjective = adjective;
>     }
> 
> but if I have written to have the brackets like this they should stay like 
> this until I change
> function Rabbit(adjective)
> {
>         this.adjective = adjective;
>  }
> 
> So can I change in Visual Studio so stay the way I want to have them

Check your config. it is somewhere in this area (depending on IDE version):

Tools Menu -> Options -> Show all Parameters (checkbox at the bottom left) 
    -> Text Editor -> JavaScript -> Formatting

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web