diff --git a/docs/ide/eclipse.rst b/docs/ide/eclipse.rst index 2549c24d..ee89db47 100644 --- a/docs/ide/eclipse.rst +++ b/docs/ide/eclipse.rst @@ -29,12 +29,13 @@ Integration Project Generator ^^^^^^^^^^^^^^^^^ -Since PlatformIO 2.0 you can generate Eclipse compatible project using -:option:`platformio init --ide` command: +SSince PlatformIO 2.0 you can generate Eclipse compatible project using +:option:`platformio init --ide` command. Please choose board type using +:ref:`cmd_boards` command and run: .. code-block:: shell - platformio init --ide eclipse + platformio init --ide eclipse --board %TYPE% Then import this project via ``File > Import... > General > Existing Projects into Workspace > Next`` and specify root directory where is located diff --git a/docs/ide/qtcreator.rst b/docs/ide/qtcreator.rst index 31bc7cde..d5d97994 100644 --- a/docs/ide/qtcreator.rst +++ b/docs/ide/qtcreator.rst @@ -21,12 +21,13 @@ Integration Project Generator ^^^^^^^^^^^^^^^^^ -Since PlatformIO 2.0 you can generate Eclipse compatible project using -:option:`platformio init --ide` command: +Since PlatformIO 2.0 you can generate Qt Creator compatible project using +:option:`platformio init --ide` command. Please choose board type using +:ref:`cmd_boards` command and run: .. code-block:: shell - platformio init --ide qtcreator + platformio init --ide qtcreator --board %TYPE% Then import this project via ``File > New File or Project > Import Project`` and specify root directory where is located :ref:`projectconf`. diff --git a/docs/ide/sublimetext.rst b/docs/ide/sublimetext.rst index df4a44a4..9e6ab34e 100644 --- a/docs/ide/sublimetext.rst +++ b/docs/ide/sublimetext.rst @@ -21,12 +21,13 @@ Integration Project Generator ^^^^^^^^^^^^^^^^^ -Since PlatformIO 2.0 you can generate Eclipse compatible project using -:option:`platformio init --ide` command: +Since PlatformIO 2.0 you can generate Sublime Text compatible project using +:option:`platformio init --ide` command. Please choose board type using +:ref:`cmd_boards` command and run: .. code-block:: shell - platformio init --ide sublimetext + platformio init --ide sublimetext --board %TYPE% Then import this project via ``Project > Open Project...`` and specify root directory where is located :ref:`projectconf`. @@ -44,7 +45,7 @@ described below: .. code-block:: bash { - "cmd": ["platformio", "run"], + "cmd": ["platformio", "--force", "run"], "working_dir": "${project_path:${folder}}", "variants": [ diff --git a/docs/ide/visualstudio.rst b/docs/ide/visualstudio.rst index 09c1929c..4afb100d 100644 --- a/docs/ide/visualstudio.rst +++ b/docs/ide/visualstudio.rst @@ -21,12 +21,13 @@ Integration Project Generator ^^^^^^^^^^^^^^^^^ -Since PlatformIO 2.0 you can generate Eclipse compatible project using -:option:`platformio init --ide` command: +Since PlatformIO 2.0 you can generate Visual Studio compatible project using +:option:`platformio init --ide` command. Please choose board type using +:ref:`cmd_boards` command and run: .. code-block:: shell - platformio init --ide visualstudio + platformio init --ide visualstudio --board %TYPE% Then import this project via ``File->Open->Project/Solution`` and specify root directory where is located :ref:`projectconf`. diff --git a/platformio/ide/projectgenerator.py b/platformio/ide/projectgenerator.py index 88d29652..e98282cb 100644 --- a/platformio/ide/projectgenerator.py +++ b/platformio/ide/projectgenerator.py @@ -27,7 +27,7 @@ class ProjectGenerator(object): if isdir(join(tpls_dir, d))] def get_project_env(self): - data = {} + data = {"env_name": "PlatformIO"} with util.cd(self.project_dir): config = util.get_project_config() for section in config.sections(): diff --git a/platformio/ide/tpls/qtcreator/platformio.pro.user.tpl b/platformio/ide/tpls/qtcreator/platformio.pro.user.tpl index 72ecb9ad..c6035cca 100644 --- a/platformio/ide/tpls/qtcreator/platformio.pro.user.tpl +++ b/platformio/ide/tpls/qtcreator/platformio.pro.user.tpl @@ -84,7 +84,7 @@ true - --force run -t clean + --force run --target clean platformio %{buildDir} Custom Process Step @@ -125,7 +125,7 @@ true - --force run -t clean + --force run --target clean platformio %{buildDir} Custom Process Step diff --git a/platformio/ide/tpls/sublimetext/platformio.sublime-project.tpl b/platformio/ide/tpls/sublimetext/platformio.sublime-project.tpl index 4c4855a2..bd785662 100644 --- a/platformio/ide/tpls/sublimetext/platformio.sublime-project.tpl +++ b/platformio/ide/tpls/sublimetext/platformio.sublime-project.tpl @@ -5,6 +5,7 @@ "cmd": [ "platformio", + "--force", "run" ], "name": "PlatformIO", diff --git a/platformio/ide/tpls/visualstudio/platformio.vcxproj.tpl b/platformio/ide/tpls/visualstudio/platformio.vcxproj.tpl index 1a069d7e..2b3aa1f9 100644 --- a/platformio/ide/tpls/visualstudio/platformio.vcxproj.tpl +++ b/platformio/ide/tpls/visualstudio/platformio.vcxproj.tpl @@ -43,7 +43,7 @@ platformio run - platformio run -t clean + platformio run --target clean {";".join(defines)}} {{";".join(includes)}}