Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator - Tab Settings - Insert tab character even when configured for spaces

Qt Creator - Tab Settings - Insert tab character even when configured for spaces

Scheduled Pinned Locked Moved Qt Creator and other tools
qtcreatortabs
2 Posts 2 Posters 2.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    inetknght
    wrote on 13 May 2015, 15:32 last edited by
    #1

    Using Qt Creator 3.3.2 with Qt 5.4.1 on Ubuntu 14.04

    My preference is to always replace tabs with spaces. When I press tab, it should replace with spaces. It does this just fine.

    Sometimes I'll edit files that are sensitive to tabs though; for example Makefiles or Python or maybe I just want to keep an existing file's tab type.

    I noticed with Python files if I press tab one it will add spaces. If I press it again it will convert the spaces back to a tab. But it doesn't do this for other types of files.

    Is there a way to add a modifier key which disables changing tabs to spaces? Say for example pressing tab alone should respect the editor's tab settings. But pressing tab with a modifier key(s) ignores tab settings and simply inserts a raw tab character?

    The only way I've come up so far is to copy a tab from somewhere and paste it in. However this is obviously inconvenient because it uses up my clipboard and I'd have to have a tab available to copy (which means opening a different file if I wanted to start a new file).

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 14 May 2015, 20:17 last edited by
      #2

      Hi and welcome to devnet,

      This is something you should check with the Qt Creator team. You should bring this to the qt-creator mailing list You'll find there Qt Creator's developers/maintainers (this forum is more user oriented)

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      13 May 2015, 15:32

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved