From 89fa23a916b55bd06b0b0756d6d874b4b03e5ba1 Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Tue, 5 Sep 2017 09:59:25 +0200 Subject: Beautifier: ClangFormat: Format current syntactic entity for no selection In case there was no selection, the action "Format Selected Text" could format the whole file (option) as a fallback. However, there is also the use case of formatting the syntactic entity under the cursor. Introducing another separate action for this feels wrong, so remove the fallback instead since there is already an action handling this. Change-Id: Ia73f6074433e706bb4c2d375ad5b84dd59bc93a3 Reviewed-by: Leena Miettinen Reviewed-by: Ivan Donchevskii Reviewed-by: Tim Jenssen Reviewed-by: Lorenz Haas --- dist/clangformat/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dist') diff --git a/dist/clangformat/README.md b/dist/clangformat/README.md index aa3584e4621..05fd065c019 100644 --- a/dist/clangformat/README.md +++ b/dist/clangformat/README.md @@ -57,7 +57,7 @@ For Windows: 3. Set shortcuts for convenience: In Menu: Tools > Options > Environment > Keyboard * ClangFormat / FormatFile - e.g. Alt+C, F - * ClangFormat / FormatSelectedText - e.g. Alt+C, S + * ClangFormat / FormatAtCursor - e.g. Alt+C, C * ClangFormat / DisableFormattingSelectedText - e.g. Alt+C, D Due to several issues outlined below the FormatFile action might be of limited -- cgit v1.2.3