A list of puns related to "Auto Indentation"
Hi ... I'm new and I discovered Obsidian yesterday and I'm very excited about it and would like to use it in addition to emacs. My Idea is to use Obsidian to write and link small chunks of prose. That's why I wanted to aks if theres a possibility to disable auto-indentation.
For Example this ist the standard behaviour of Obsidian:
This is a line of text, bla bla bla bla bla / Linebreak enter and I hit tab because of dialogue
____my_tab__"Now this is a person speaking bla bla bla /line ends here
__auto_tab__same person continues speaking bla bla bla"
So Obsidian is auto indenting the second line of dialogue (same person speaking) and I could only prevent it by hitting enter after previous line and then delete the tabbed indentation manually.
Ok I hope I could explain what I mean.
I would like that only hitting the tab key creates an indentation. Is this possible??
Many greetz from germany
Mino
Let's say I have a config file created by a CLI operation. Invariably it's created with space-based indentation. Is there any way in VS I can tell it to swap these spaces out for my preferred, tab-based means of indentation when the file is opened?
Hey!
I have tree-sitter (neovim 0.5) set up to handle my indentation and it's working pretty much flawlessly except for multiline comments. They never align properly.
Does anyone know of a way to solve this ?
Actual:
/**
* Comment
*/
Expected:
/**
* Comment
*/
Lately my Python indentation was getting messed up and I couldn't seem to place a finger on the cause. Few hours ago, I was calmly re-reading my config files when I saw that I had enabled Treesitter indentation, I removed that setting and auto-indentation is now working normally again.
Putting this here in case someone runs into the same problem.
Hi, as per the title, I'm unable to <TAB> or have any auto-indentation in php-mode.
with a simple .php file, I get this:
<?php
phpinfo();
?>
Pressing <TAB> anywhere within the document does nothing at all. I don't have this issue in other modes. Any idea what I might have done wrong?
edit:
looks like I derped on this one. Was able to tab/indent in the following:
<?php
for ($i = 1; $i <= 10; $i++ ){
if ($i % 2 == 0) {
echo "even";
} else {
echo "odd";
}
}
?>
not sure, but perhaps php-mode tries to encourage proper formatting by limiting tabbing/indentation by default? Still don't know how insert tabs freely though...
I'm placing an inline table in a column and I can prevent it from indenting automatically. Any way to prevent this?
Pic for ref: https://imgur.com/a/ruaDxST
Thanks!
I have been playing around with utop
more and I'm curious if there's a way to edit the ~/.utoprc
file to auto indentβis this possible?
EDIT: So far, thereβs nothing about this being possible in the utop
you can run in your terminal, on the other hand there is a Jupyter OCaml kernel with utop
running under the hood that does provide these things!
https://github.com/akabe/ocaml-jupyter/blob/master/README.md?utm_source=share&utm_medium=ios_app
I've noticed a peculiar behavior when using auto-fill-mode editing Python code. For example if I start typing the following (fill-column is set to 79),
def some_function(keyword_argument0, keyword_argument1,
keyword_argument2='foobar'):
"""
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
and press Enter, it will look like this:
def some_function(keyword_argument0, keyword_argument1,
keyword_argument2='foobar'):
"""
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.
If the keyword arguments are all in one line, the docstring continues to be indented with 4 spaces as expected, but whenever it is extended across multiple lines, any line of the docstring after the first will match the indentation of the second line of the list of keyword arguments. Is there a good reason for this, or is this just a bug in auto-fill-mode?
I was editing a .tex file, but neovim keep adding annoying indents to the head of line every time I input {.
I tried all I know to turn off it but I still can't...
So far I've tried :set noautoindent
, :set nosmartindent
, and filetype plugin indent off
Here's my configs for LaTeX
" LaTeX
autocmd BufNewFile,BufRead *.tex,*.sty,*.cls
\ set filetype=tex |
\ set shiftwidth=2 |
\ set tabstop=2
" Disable the conceal function
let g:tex_conceal = ''
and these are the plugins I'm using for now
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'w0rp/ale'
Plug '/bin/fzf'
Plug 'junegunn/fzf.vim'
Plug 'jiangmiao/auto-pairs'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-commentary'
Plug 'vim-airline/vim-airline'
Plug 'scrooloose/nerdtree'
Plug 'majutsushi/tagbar'
Plug 'skywind3000/asyncrun.vim'
Plug 'dangoron/quickrun.vim'
Plug 'iamcco/markdown-preview.vim'
Plug 'iamcco/mathjax-support-for-mkdp'
I also tried to turn off all plugins, but I still cannot get rid of the indentation. They should not be the culprit. I'll be super grateful if anyone could tell me how to turn off the autoindent...
Hi,
I have my tab key to place four spaces. However, in C anyways, after I press enter after using a curly bracket, it will indent 2 lines automatically instead of 4. Even if I hit space twice after that and start typing it will sometimes automatically change the word back to where it was automatically indented to. How do I fix this?
See title. The biggest drawback to VIM so far for me is code formatting; my code's indentation is FUBAR and I'm not sure of how to fix it. I'm working with HTML, JavaScript, and Ruby. Any help would be greatly appreciated.
Codepen has this cool thing where you can highlight blocks of code, hit SHIFT+Tab and it'll take flat/incorrect indentation and correct it. The auto-indent stuff is great, but I can't find anything that does this in the default setting and have searched for a plugin but I'm not sure how to describe what I'm even looking for.
Anyone have any ideas?
I recently upgraded to version 7.4 (using Homebrew on OS X Lion if it matters) and auto indentation no longer works for html. All of the other filetypes I tried still worked fine, just not html. I made sure it wasn't something I may have done in my vimrc and rolled back to the copy of 7.3 preloaded from Apple and everything worked fine. Does anyone else have this issue?
This release adds auto-indentation similar to aggressive-indent-mode and updates some templates.
Sorry for the rapid releases lately -- I normally space them out, but being unemployed has given me a ton of time to work on my projects.
This release adds auto-indentation during situations such as renaming vars. That means, when you start with this:
(def nums [1
2
3])
And you rename it to "numbers", it should look like this:
(def numbers [1
2
3])
If nobody notices any problems, I will bring this change to Nightcode and Nightcoders.net as well.
New notebook user here.
I'm trying to create my first notebook, but I have to say, while having Jupyter autoindent after if
s and def
s and stuff is nominally a nice feature to have, it completely messes with my muscle memory. I didn't even realize it until just now, but apparently I've built up the muscle memory to hit tab after such control statements, just like Jupyter does -- the end result that I hit tab every time myself, after Jupyter does, so now I'm doing the Enter
-Tab
-Backspace
dance every single time I insert a control statement.
How can I disable this functionality?
Additionally, I'd also like to change the default tab width from 4 to 5. A quick Google revealed this StackOverflow question, which would have been the answer for IPython, but apparently not for Jupyter.
I've gone through some of the source, and I can see where the relevant JS is (notebook/static/notebook/js/codecell.js), but I have no idea how to actually modify this in my notebook.
jupyter_notebook_config.py
doesn't seem to have anything relevant.
EDIT: Never mind! The function I was looking for is M-x indent-relative
. That solves my problem. I can combine that with return to make a custom function to do what I want.
Writing a shell script, Emacs adds 4 tabs and 1 space. I donβt want this to happen. I want Emacs to go to the first character in the previous line. Emacs is going wild with auto-formatting. I want electricity. I like electricity. But I donβt like auto-formatting. That is, I donβt like tons of random tabs and spaces added for no reason.
for in i in 1 2
<tab><tab><tab><tab><space><cursor is now here>
I donβt want that. I want :
for in i 1 2
<cursor is here>
M-x electric-indent-mode
doesnβt work, because then I lose electricity, which is also problematic. I like electricity, but I donβt like auto-formatting. Turning off electricity isnβt good:
for in i 1 2
do
<cursor is here>
I want the cursor to be aligned with the do
, not at the beginning of the line. Does anyone know how to do this?
Is this a Coc thing? For a second ~~I could've sworn this is something neovim does already...~~(it does if there's no ending bracket) I even set smartindent just in case that was the problem.
edit: i found a inoremap that does it Java style(bracket on same line as function) but thatβs not what i want
edit 2: ended up using vim-bootstrap, got me what I wanted. not a direct solution to the problem, but it works.
Hey all
While I love Scrivener on many levels, the one thing that drives me absolutely "The Shinning" level batty is the auto-indent. I have read countless tutorials, watch YouTube videos, even tried to meditate my through the issue ... and alas, I'm still certifiable. Please take a look at the screenshot below:
I don't want the app to do any auto-formatting at all, nadia, not even a wee little bit, anywhere, at any time, full stop - FOR THE LOVE OF YODA please!
If I need a tab, indent, joyful exclamation, I'll add it myself. In most cases, I just want to type like you would in Word or Pages, not formatting. I have tried the ruler thingy in preferences, nada. I would really like to avoid Hari Kari and just write me book. You wise counsel with specifics would be greatly appreciated.
Im on Scrivner 3 on a Mac.
Many thank!
Bob
https://preview.redd.it/zkfzccsm8mq61.png?width=1312&format=png&auto=webp&s=ea46c7534a7c7244b023256ddd358e1a3946635b
https://preview.redd.it/4rlbhfsm8mq61.png?width=1290&format=png&auto=webp&s=1627d37a08b86664da6b490f093883a229f64635
How do I make for example a for loop snippet to auto indent when I want to create a nested loop code? I need my snippet to keep the indent when it's inserted. Right now only the first line of the snippet keeps the indent. The rest of the lines don't.
I previously had an issue with vertical spacing, and now that it's fixed a new issue has arisen of the auto-indent indenting a line I don't want to be indented. Using the same example code, see attachment.
I also already tried the three underscores, which unindented but removed the spacing I had created too.
in visual studio ide,whenever i type something like a for loop in C++,spaces are automatically added after each comma afer typing semicolon,how can i add this to vs code?
Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.