Comments (11)
@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.
+1
from vscode-ruby.
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 end
s 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.
Same problem here. Any work around?
from vscode-ruby.
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.
Are either of you still having problems with the auto indent still (except the non-un-indenting end)?
from vscode-ruby.
As of today, yes I'm still having the problem. (Latest stable VS code, latest Ruby plugin)
from vscode-ruby.
Same issue here. Did anyone find a suitable workaround?
from vscode-ruby.
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.
+1
from vscode-ruby.
This seem to be still an issue in 2019!
from vscode-ruby.
Related Issues (20)
- unable to execute bundle exec rubocop and reek, but the same commands work in terminal HOT 3
- Incorrect syntax highlighting following `/` characters used for division (instead of regex) HOT 1
- Syntax Errors Are Not Shown HOT 1
- Debug console suddenly stops working HOT 1
- Feature request: Break on exception and break on uncaught exception HOT 1
- Building the extension on an M1 Mac HOT 1
- Files: Default Language is interrupted HOT 1
- Add class name support to QuickOpen Symbol Search HOT 1
- ruby 3.x support HOT 2
- Pass args to the formatter HOT 1
- option to change default diagnostic level is missing HOT 1
- There was an error parsing `Gemfile`: No such file or directory HOT 1
- 50% of ruby debug-local-file sessions fail immediately on Windows 10 HOT 1
- Starting ruby LSP gives me `Cannot read properties of null (reading 'toString')` error HOT 1
- CMD + Click on a definition should show the best match first HOT 1
- Extension causes high cpu load
- Cannot Set Terminal Process Group: Inappropriate IOCTL for Device bash: no job control in this shell
- Fails when using special characters HOT 1
- Fatal exception in DebugThread loop: Only one usage of each socket address (protocol/network address/port) is normally permitted. - bind(2) for "127.0.0.1" port 1234
- Syntax highlighting issue if there's a double quote and an inline rescue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-ruby.