How to comment out block of lines in project file ?
-
Is there accepted way to comment out block of lines in Qt project file ?
Something similar to C style/* block start commented out
*/ block end commented out
or is
# commented out # commented out
only way to do it?
#------------------------------------------------- # # Project created by QtCreator 2019-10-10T11:08:52 # #------------------------------------------------- /* QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = Stadard_Dialog_Example TEMPLATE = app SOURCES += main.cpp\ mainwindow.cpp HEADERS += mainwindow.h FORMS += mainwindow.ui */
-
Is there accepted way to comment out block of lines in Qt project file ?
Something similar to C style/* block start commented out
*/ block end commented out
or is
# commented out # commented out
only way to do it?
#------------------------------------------------- # # Project created by QtCreator 2019-10-10T11:08:52 # #------------------------------------------------- /* QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = Stadard_Dialog_Example TEMPLATE = app SOURCES += main.cpp\ mainwindow.cpp HEADERS += mainwindow.h FORMS += mainwindow.ui */
@AnneRanch please check documentation
-
Is there accepted way to comment out block of lines in Qt project file ?
Something similar to C style/* block start commented out
*/ block end commented out
or is
# commented out # commented out
only way to do it?
#------------------------------------------------- # # Project created by QtCreator 2019-10-10T11:08:52 # #------------------------------------------------- /* QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = Stadard_Dialog_Example TEMPLATE = app SOURCES += main.cpp\ mainwindow.cpp HEADERS += mainwindow.h FORMS += mainwindow.ui */
@AnneRanch said in How to comment out block of lines in project file ?:
or is
# commented out # commented out
only way to do it?
Yes, that's the only way.
-
@AnneRanch said in How to comment out block of lines in project file ?:
or is
# commented out # commented out
only way to do it?
Yes, that's the only way.
@JKSH
I don't use Qt Creator. Can one edit a.pro
file in Creator so that you can see the text, it knows the syntax of a.pro
file, and does Qt Creator have a command to "toggle" commenting in/out a block of lines (e.g. Ctrl+/), as other IDEs I use do, which would work on a.pro
file? That would help the OP. -
@JKSH
I don't use Qt Creator. Can one edit a.pro
file in Creator so that you can see the text, it knows the syntax of a.pro
file, and does Qt Creator have a command to "toggle" commenting in/out a block of lines (e.g. Ctrl+/), as other IDEs I use do, which would work on a.pro
file? That would help the OP.