Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: VS2013 Indention  (Read 1558 times)

0 Members and 1 Guest are viewing this topic.

BeautiCode

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
VS2013 Indention
« on: June 14, 2014, 05:59:05 am »

Anyone know why Visual Studio 2013 is forcing my code to be formatted like this? It's really annoying to me.
I'd love to get it fixed.

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: VS2013 Indention
« Reply #1 on: June 14, 2014, 06:05:52 am »
Take a look at the screenshot to find the available options. Note these are my settings and I have no issues. Play with the options and see if you can find the problem.  ;)

« Last Edit: June 14, 2014, 06:09:24 am by zsbzsb »
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: VS2013 Indention
« Reply #2 on: June 14, 2014, 08:20:51 am »
We'd like to avoid non-SFML questions on this forum. There are more relevant forums on the internet to answer Visual Studio questions. This one was easy, but for other topics you may not get many answers from the SFML community about non-SFML stuff ;)
Laurent Gomila - SFML developer

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: VS2013 Indention
« Reply #3 on: June 15, 2014, 03:28:32 pm »
Besides configuring your IDE/Editor probably (which you shoud of course do). There's also clang-format if you want more flexibility (there are plenty of plugins for editors) or maybe need to easily reformat a lot of existing files.
And if you want to ensure that all files in your repository are always consistently formatted it is fairly simple to set up git hooks to either do the reformat auto magically on commit or at least complain loudly so you can do it manually - the llvm/clang projects have existing python scripts available that can be used for just that.
« Last Edit: June 15, 2014, 03:32:29 pm by Jesper Juhl »

BeautiCode

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
Re: VS2013 Indention
« Reply #4 on: June 16, 2014, 08:16:32 am »
Alright, thank you guys.
I modified the settings but it still doesn't seem to change. I'll keep fiddling.

 

anything