Git Product home page Git Product logo

Comments (13)

aBothe avatar aBothe commented on September 15, 2024

It's been added the todo-list :)

from mono-d.

alexrp avatar alexrp commented on September 15, 2024

In the meantime, would it be possible to make the default indentation 4 tabs? This is the standard in ~most D projects including Phobos.

from mono-d.

aBothe avatar aBothe commented on September 15, 2024

The general behaviour can be changed in the MonoDevelop settings (Source Code -> Code Formatting -> Text file). Is using tabs that bad right now? :)

from mono-d.

michaelc37 avatar michaelc37 commented on September 15, 2024

this is a tricky one... im not sure of the importance of having a specific indentation setting for d projects.
If this is to be implemented, maybe we could have the d specific indentation setting defaulted to default which always reflects Source Code -> Code Formatting -> Text file - Tab Width.

from mono-d.

alexrp avatar alexrp commented on September 15, 2024

@aBothe I was not aware that the text file settings affected D files. I'll try that.

@michaelc37 That design sounds reasonable. I believe having a separate configuration for D is important if you ever want to support advanced "format document" scenarios.

from mono-d.

alexrp avatar alexrp commented on September 15, 2024

OK, not sure if this is related, but the indentation is acting really strange: http://i.imgur.com/2AImF.jpg

What happens is that after typing one declaration or statement and hitting enter, the indentation suddenly increases by another level. Any clue why this happens?

from mono-d.

aBothe avatar aBothe commented on September 15, 2024

Yeah I'm also not really sure.. There are so many different rules to follow, so it can become a very huge mess. Nevertheless I created tests which should prevent things like this - I'll keep it in mind for the next fixing cycle. :)

from mono-d.

alexrp avatar alexrp commented on September 15, 2024

Another (possibly related?) bug is that when selecting text and pressing enter, it inserts a new line instead of overwriting the selected text.

from mono-d.

alexrp avatar alexrp commented on September 15, 2024

Is the indentation issue supposed to be fixed in the last update?

from mono-d.

aBothe avatar aBothe commented on September 15, 2024

I think so

from mono-d.

alexrp avatar alexrp commented on September 15, 2024

It still seems to do that double-indentation thing for me (see previous screenshot).

from mono-d.

aBothe avatar aBothe commented on September 15, 2024

Doesn't happen on my side - hmm - anyway, I think it can be very annoying that for changing a formatting setting, creating a new project is required. You think there's a chance to change this in MonoDevelop, in general? Or should it be D-exclusive :D ?

from mono-d.

aBothe avatar aBothe commented on September 15, 2024

Ok, I think I can close this issue, since there are couple of code formatting options even for projects now.

from mono-d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.