title: Convert Automatically Spaces to Tabs in Visual Studio Code
body: <p>I have a file in Visual Studio Code in which I use only tabs for indentation. When I copy the contents of that file somewhere else and edit them, then when I paste them back all tabs are gone and spaces have taken their places.</p>
  
  <p>How can I prevent the use of spaces for indentation and automatically spaces will be converted to tabs?</p>
  
  <p>Also I have changed the preferences:</p>
  
  <pre><code>"editor.insertSpaces": false,
  "editor.detectIndentation": false,
  </code></pre>