From 7dde56ea6aafc8301eee369529283488dd0b9288 Mon Sep 17 00:00:00 2001 From: Eberhard Graether Date: Tue, 10 Apr 2018 12:00:15 +0200 Subject: [PATCH] res: Updated tutorial and projects * mention snippet mode in code tutorial --- .../projects/javaparser/javaparser.srctrlprj | 1 + .../user/projects/tictactoe/tictactoe.srctrlprj | 4 ++-- .../projects/tutorial/src/code_tutorial_1.h | 17 +++++++++++------ .../projects/tutorial/src/code_tutorial_3.h | 5 ++--- .../user/projects/tutorial/tutorial.srctrlprj | 4 ++-- 5 files changed, 18 insertions(+), 13 deletions(-) diff --git a/bin/app/user/projects/javaparser/javaparser.srctrlprj b/bin/app/user/projects/javaparser/javaparser.srctrlprj index 52f733fc..855978b7 100644 --- a/bin/app/user/projects/javaparser/javaparser.srctrlprj +++ b/bin/app/user/projects/javaparser/javaparser.srctrlprj @@ -26,6 +26,7 @@ ./target/generated-sources/javacc 8 + enabled Java Source Group 1 diff --git a/bin/app/user/projects/tictactoe/tictactoe.srctrlprj b/bin/app/user/projects/tictactoe/tictactoe.srctrlprj index 4961500b..6f9f163f 100644 --- a/bin/app/user/projects/tictactoe/tictactoe.srctrlprj +++ b/bin/app/user/projects/tictactoe/tictactoe.srctrlprj @@ -12,7 +12,6 @@ 0 TicTacToe Source Group - 1 .cpp .cxx @@ -22,7 +21,8 @@ ./src - c++1z + c++2a + enabled C++ Source Group diff --git a/bin/app/user/projects/tutorial/src/code_tutorial_1.h b/bin/app/user/projects/tutorial/src/code_tutorial_1.h index 90edb815..c5080a6c 100644 --- a/bin/app/user/projects/tutorial/src/code_tutorial_1.h +++ b/bin/app/user/projects/tutorial/src/code_tutorial_1.h @@ -8,15 +8,20 @@ //------------------------------------------------------------------------------ // // 1 - THE CODE TUTORIAL -// As you already know the Code View displays the snippets of code that are -// related to your currently active symbol. These snippets show the relevant -// lines in combination with some context. +// As you already know the Code View displays the snippets of code that are +// related to your currently active symbol. These snippets show the relevant +// lines in combination with some context. // In case you discover something interesting as part of the snippet's context -// you can activate that symbol with a left-click. That way you dig deeper +// you can activate that symbol with a left-click. That way you dig deeper // through your code base. -// Have you ever wondered what's the meaning of life, the universe and +// Have you ever wondered what's the meaning of life, the universe and // everything? Click the respective symbol to find out. // +// NOTE: +// This tutorial is based on the snippet view of Sourcetrail's Code View. +// Please click the button "snippet list mode" in the top right corner of the +// Code View. +// //------------------------------------------------------------------------------ class CodeTutorial @@ -25,7 +30,7 @@ public: CodeTutorial() { } - + static int meaning_of_life_the_universe_and_everything; }; diff --git a/bin/app/user/projects/tutorial/src/code_tutorial_3.h b/bin/app/user/projects/tutorial/src/code_tutorial_3.h index 0048095d..b7819022 100644 --- a/bin/app/user/projects/tutorial/src/code_tutorial_3.h +++ b/bin/app/user/projects/tutorial/src/code_tutorial_3.h @@ -47,9 +47,8 @@ void function_with_snippets() // to the central hub. // // P.S. -// You can also click the file name above (i guess you need to scroll up a -// little bit) to activate the file's node in case you want to explore your -// include hierarchy. +// You can also click the file name above to activate the file's node in case you +// want to explore your include hierarchy. // //------------------------------------------------------------------------------ diff --git a/bin/app/user/projects/tutorial/tutorial.srctrlprj b/bin/app/user/projects/tutorial/tutorial.srctrlprj index 356be4d6..f3f405f7 100644 --- a/bin/app/user/projects/tutorial/tutorial.srctrlprj +++ b/bin/app/user/projects/tutorial/tutorial.srctrlprj @@ -27,14 +27,14 @@ 0 Tutorial Source Group - 1 .cpp ./src - c++1z + c++2a + enabled C++ Source Group