Git Product home page Git Product logo

Comments (11)

betam4x avatar betam4x commented on August 25, 2024 1

@HookyQR please reopen, this is definitely still an issue. Tested on Windows 10 and the latest versions of VS code and this plugin.

from vscode-ruby.

andrewmartin avatar andrewmartin commented on August 25, 2024 1

+1

from vscode-ruby.

HookyQR avatar HookyQR commented on August 25, 2024

Hi @chriskacerguis. decreaseIndentPattern won't solve your problem, it's only job is to un-indent the end for already indented code.

The code you should get (assuming you dont't un-indent manually) is:

def test_foo
  if cond == true
    p 'hello'
    end
  end

Note that the ends don't automatically un-indent. My guess is your settings are a little bit off and I'm expecting your "editor.tabSize" is not set correctly. For ruby, this is generally set to 2. Check your workspace (if you have one) and user settings files.

This doesn't rely on any additional packages being installed, so I would be very surprised if it's not a setting problem.

from vscode-ruby.

odarriba avatar odarriba commented on August 25, 2024

Same problem here. Any work around?

from vscode-ruby.

HookyQR avatar HookyQR commented on August 25, 2024

Not really. There are snippets in the extension that will give you the blocks, but I don't use them either.

We've just included code formatting in the last release. You'll have to have rubocop installed for it to work though. That should fix your un-indenting after the fact.

There are other languages with the same problem, so vs code may give us a fix one day. Ask @rebornix nicely, he contributes to the main vscode repo. 😉

from vscode-ruby.

HookyQR avatar HookyQR commented on August 25, 2024

Are either of you still having problems with the auto indent still (except the non-un-indenting end)?

from vscode-ruby.

chriskacerguis avatar chriskacerguis commented on August 25, 2024

As of today, yes I'm still having the problem. (Latest stable VS code, latest Ruby plugin)

from vscode-ruby.

jclay avatar jclay commented on August 25, 2024

Same issue here. Did anyone find a suitable workaround?

from vscode-ruby.

HookyQR avatar HookyQR commented on August 25, 2024

Hey @jclay, @chriskacerguis, @odarriba. I'm going to close this issue as it references some very old versions. I'm running on MacOS (as well) and I'm not experiencing any of the problems that are listed here (excluding the non-un-indenting end), and I don't see any settings that would cause this to be a problem. If you're still experiencing issues with indenting, can you please raise another issues with an example of it not working.

Sorry for the stuff around.

from vscode-ruby.

thadeu avatar thadeu commented on August 25, 2024

+1

from vscode-ruby.

askarhu avatar askarhu commented on August 25, 2024

This seem to be still an issue in 2019!

from vscode-ruby.

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.