Open Paschwuerfler opened 4 years ago
I think the issue you are describing is similar to mine. Essentially, after I format a block of text using code blocks, and I want to go back and add a new indented line, when you press tab, it'll add a new line instead of tabbing the line you're on.
Screenshot after pressing tab, when I wanted to indent "persistent": false"
Yes. This is what I mean. I have found the cause of the issue(on the surface, at least): When Codeblocks formats code, it puts some (if not all, I'm not sure) parts of your document into a table, in my case, I found that my whole document had been converted into a table.
I fixed this by downloading the Document and converting the Table to text in word.
The following autohotkey script fixes the issue for Windows users by intercepting the tab key, preserving your clipboard, putting tab into your clipboard, pressing control-v, then restoring your clipboard. The word "docs" has to be in the active window title, otherwise it wont intercept your tab key, so you should be able to leave this script running at all times. Install autohotkey, then put the below text into a text file and rename the file extension to .ahk and double click it.
AutoTrim, Off SetTitleMatchMode, 2
*Tab:: temp = %clipboard% clipboard = %A_Tab% sleep 10 send ^v sleep 10 clipboard = %temp% return
See this post for an introduction to the Problem: Tab scrolling to End of Page instead of indenting.
I've used code Blocks excessively within this document.
Also: Code Blocks deletes already formatted code when trying to format another piece of code within the same document.