Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

149
Vistas
Visual Studio 2022 place curly braces in the same line in javascript

How can i force Visual Studio to maintain curly braces in the same line when auto format is done?

Example: I write this code:

$('#details-modal').on('change', '#Foo1', function (e) {
    var bar = $('#Foo2 option:selected').text();
})

When i add ; the code gets formatted like this:

$('#details-modal').on('change', 
    '#Foo1', 
    function (e) {
        var bar = $('#Foo2 option:selected').text();
    });

How can i avoid this behaviour and maintain the first code style?

Thank you

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I post this in case anyone has the same problem.

In my case, it was not visual studio 2022 the tool which was causing the line breaks, it was Resharper.

I have disabled the wrapping options in Javascript inside Resharper and now it is working as desired.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda