Comments (2)
Assuming you are referring to the use of 4 x space
indentation when using the Format Document
command from the right-click context menu or Ctrl+Shift+F
- I could stand corrected but I don't think changing the method of indentation used is within the scope of the extension. See the README - https://github.com/mark-wiemer/vscode-autohotkey-plus-plus#code-format (scroll down a little).
Indentation can be toggled between spaces/tabs from the Status Bar, or from the Command Palette F1
(or Ctrl_Shift+P
) and type in either tabs
or spaces
and choose from the drop-down menu.
from ahkpp.
This is a valid issue with AHK++ (and cweijan
's extension) specifically. VS Code usually allows users to format using tabs or spaces, but our formatter ignores that option and always prints out spaces. We do respect the tabSize
(e.g. number of spaces to print per indentation level) option. See formattingProvider.ts:136 for implementation details, will probably be a simple fix once we find out which option corresponds to tabs vs spaces :)
from ahkpp.
Related Issues (20)
- How to get intelisense suggestions for functions stored in '.\Documents\lib' ? HOT 2
- AHK V1 files language mode is always set to `AutoHotkeyV2` HOT 9
- Parser stops working on AHK v1.1 files HOT 4
- Extension forgot AHK location HOT 4
- "Go to definition" using Ctrl + Click jumps to another file opened in editor / or doesn't jump to definition at all within the same file if the file is very long ~10k lines HOT 1
- Wrong indentation when moving line of code out of if-statement HOT 1
- Wrong indentation: press Enter after condition-block in If-statement
- AHK++ is not activating. HOT 11
- "Run" command thinks a V1 script is V2. HOT 4
- Formatter replaces multiple spaces with a single space inside a string HOT 1
- Wrong indentation on copy-paste HOT 6
- How to format code There is no formatter for 'ahk2' files installed. HOT 2
- No format intelicence or formating or colors HOT 4
- Language Switch problems HOT 2
- format code feature changes the number of spaces in a constant string HOT 1
- Debugger takes keyboard focus from active window HOT 1
- The Open AutoHotkey Help command is failing HOT 2
- allow rename variables HOT 1
- Availability as standalone LSP HOT 2
- Shortcut to comment/decomment selected line HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ahkpp.