code-blocks icon indicating copy to clipboard operation
code-blocks copied to clipboard

Tab scrolling to End of Page instead of indenting.

Open Paschwuerfler opened this issue 4 years ago • 3 comments

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.

Paschwuerfler avatar May 09 '20 15:05 Paschwuerfler

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"

image

catherinetsang avatar May 19 '20 01:05 catherinetsang

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.

Paschwuerfler avatar May 19 '20 14:05 Paschwuerfler

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 #IfWinActive Docs *Tab:: temp = %clipboard% clipboard = %A_Tab% sleep 10 send ^v sleep 10 clipboard = %temp% return

imkharn avatar Oct 19 '20 03:10 imkharn